我想知道如何在Flutter和Dart中为单元测试修改静态getter的返回值。我正在单元测试一个简单的函数: Future<bool> exampleFunc() async { // Do some iOS-specificgetter的返回值:我想为不同的测试用例调整Platform.isIOS
我的项目在1.10.0版上运行得很好,我已经将flutter升级到新版本1.12,我得到了以下错误../../..Try correcting the name to the name of an existing getter, or defining a getter or field named 'fullObstructionTry correcting the name to the name of an existing getter</e