While upgrading the flutter project to null-safety it has appeared the following error
The name 'FutureOr' isn't a type, so it can't be used in an 'as' expression. Try changing the name to the name of an existing type, or creating a type with the name 'FutureOr'
Looks like import is missing
FutureOr is part of
Answered By – Sachin Bhankhar
Answer Checked By – Jay B. (FlutterFixes Admin)