将flutter项目升级到null-safety时出现以下错误
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'

发布于 2021-06-06 12:14:28
看起来导入缺少import 'dart:async';
FutureOr是dart:async的一部分
https://stackoverflow.com/questions/67855509
复制相似问题