我的测试在被我 Flutter 项目引用的仅包含 Dart 的项目中编译和运行失败,错误信息如下:
Failed to precompile test:test:
../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/analyzer-1.0.0/lib/src/error/best_practices_verifier.dart:1952:14: Error: A non-null value must be returned since the return type 'String' doesn't allow null.
String get displayString {
请问有什么想法吗?
Flutter 2.2.1 (current stable channel)
Tools • Dart 2.13.1
(我也在Flutter的GitHub上提出了这个问题) https://github.com/flutter/flutter/issues/83683
pub.dartlang.org/analyzer-1.0.0/lib/src/error/best_practices_verifier.dart
。 - atreeon