FAILURE: Build failed with an exception. Error: Member not found: 'AsciiChar'. int get AsciiChar =>

FAILURE: Build failed with an exception. Error: Member not found: 'AsciiChar'. int get AsciiChar =>

Problem:
Running "flutter pub get" in pomodoro_timer...

Launching lib\main.dart on GM1910 in debug mode...
Running Gradle task 'assembleDebug'...

/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/win32-2.3.6/lib/src/structs.g.dart:661:31: Error: Member not found: 'UnicodeChar'.
  int get UnicodeChar => Char.UnicodeChar;
                                          ^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/win32-2.3.6/lib/src/structs.g.dart:662:38: Error: Setter not found: 'UnicodeChar'.
  set UnicodeChar(int value) => Char.UnicodeChar = value;
                                                   ^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/win32-2.3.6/lib/src/structs.g.dart:664:29: Error: Member not found: 'AsciiChar'.
  int get AsciiChar => Char.AsciiChar;
                                   ^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/win32-2.3.6/lib/src/structs.g.dart:665:36: Error: Setter not found: 'AsciiChar'.
  set AsciiChar(int value) => Char.AsciiChar = value;
                                              ^^^^^^^^^

FAILURE: Build failed with an exception.


* Where:

Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1156

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 46s
Exception: Gradle task assembleDebug failed with exit code 1

Solution:
Run in terminal

flutter pub upgrade

Read More