小编Ank*_*sal的帖子

dart migrate 在我自己的代码文件中给出错误

当我运行“dart migrate”以启用空安全时,它会给出以下输出。

\n
\nBefore migrating your package, we recommend ensuring that every library it\nimports (either directly or indirectly) has been migrated to null safety, so\nthat you will be able to run your unit tests in sound null checking mode.  You\nare currently importing the following non-null-safe libraries:\n\n  package:stepfly/common/Functions/Constants/constants.dart\n  package:stepfly/common/Functions/Utils/random_string.dart\n  package:stepfly/common/Functions/Utils/timeUtils.dart\n  package:stepfly/common/Functions/Utils/utilExam.dart\n  package:stepfly/common/Functions/Utils/utilInternet.dart\n  package:stepfly/common/Functions/Utils/utils.dart\n  package:stepfly/common/Functions/Utils/utilsResourse.dart\n  package:stepfly/common/Functions/Utils/utilsUserData.dart\n  package:stepfly/common/Responsive/enums/device_screen_type.dart\n  package:stepfly/common/Responsive/platformInfo.dart\n  package:stepfly/common/Responsive/responsive/responsive_builder.dart\n  ......\n\nPlease upgrade the packages containing these libraries to null safe versions\nbefore continuing.  To see what null safe package versions are available, run\nthe following …
Run Code Online (Sandbox Code Playgroud)

dart flutter dart-null-safety

10
推荐指数
1
解决办法
2586
查看次数

标签 统计

dart ×1

dart-null-safety ×1

flutter ×1