When we upgrade flutter, sometimes the running program will find that it cannot be compiled, and the following error will appear
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
[ ] [ +2 ms ] ../../../../.pub-cache/hosted/pub.flutter-io.cn/cached_network_image-3.2.0/lib/src/image_provider/multi_image_stream_completer.dart:152:22: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null. [ ] [ ] - 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ( '../../../../code/flutter_3/packages/flutter/lib/src/scheduler/binding.dart' ) . [ ] [ ] SchedulerBinding.instance?.scheduleFrameCallback ( _handleAppFrame ) ; [ ] [ ] ^ [ +402 ms ] [ +414 ms ] ../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-2.3.1/lib/src/structs.g.dart:554:31: Error: Member not found: 'UnicodeChar' . [ ] [ ] int get UnicodeChar = > Char.UnicodeChar; [ ] [ ] ^^^^^^^^^^^ [ ] [ ] ../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-2.3.1/lib/src/structs.g.dart:555:38: Error: Setter not found: 'UnicodeChar' . [ ] [ ] set UnicodeChar ( int value ) = > Char.UnicodeChar = value; [ ] [ ] ^^^^^^^^^^^ [ ] [ ] ../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-2.3.1/lib/src/structs.g.dart:557:29: Error: Member not found: 'AsciiChar' . [ ] [ ] int get AsciiChar = > Char.AsciiChar; [ ] [ ] ^^^^^^^^^ [ ] [ ] ../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-2.3.1/lib/src/structs.g.dart:558:36: Error: Setter not found: 'AsciiChar' . [ ] [ ] set AsciiChar ( int value ) = > Char.AsciiChar = value; [ ] [ ] ^^^^^^^^^
|
For this kind of problem, it is relatively simple to solve, execute
This article is reprinted from https://droidyue.com/blog/2022/10/11/flutter-error-member-not-found-asciichar/
This site is for inclusion only, and the copyright belongs to the original author.