对于如何在具有空安全性的情况下调试 Flutter 中的空错误有什么建议吗?
<块引用>需要一个'Map
以防万一我用 Map
并且由于实现了 null 安全的愚蠢方式,675 行错误堆栈(下面的只是前 300 行)不包含单个包含 Dart 代码中错误来源信息的行。
我 99% 确定错误是由通信请求引起的,但错误发生在我从我对服务器的调用中得到响应之前,甚至没有到达转换 Map 对象的地方
不幸的是,这不是新的 Flutter NULL 安全第一次未能提供正确的调试信息并出现 NULL 对象错误,但到目前为止,我设法通过将可执行代码减少到识别问题的程度来修复它们
Error: Expected a value of type 'Map<String, dynamic>', but got one of type 'Null'
at Object.throw_ [as throw] (http://localhost:5000/dart_sdk.js:5054:11)
at Object.castError (http://localhost:5000/dart_sdk.js:5013:15)
at Object.cast [as as] (http://localhost:5000/dart_sdk.js:5336:17)
at Function.as_C [as as] (http://localhost:5000/dart_sdk.js:4959:19)
at _engine.EngineSingletonFlutterWindow.new.handleNavigationMessage
(http://localhost:5000/dart_sdk.js:173578:52)
at handleNavigationMessage.next (<anonymous>)
at runBody (http://localhost:5000/dart_sdk.js:37456:34)
at Object._async [as async] (http://localhost:5000/dart_sdk.js:37487:7)
at _engine.EngineSingletonFlutterWindow.new.handleNavigationMessage
(http://localhost:5000/dart_sdk.js:173576:20)
at _engine.EnginePlatformDispatcher.__.[_sendPlatformMessage] (http://localhost:5000/dart_sdk.js:161799:68)
at _engine.EnginePlatformDispatcher.__.sendPlatformMessage (http://localhost:5000/dart_sdk.js:161627:33)
at _DefaultBinaryMessenger.[_sendPlatformMessage]
(http://localhost:5000/packages/flutter/src/services/system_channels.dart.lib.js:2096:38)
at _DefaultBinaryMessenger.send
(http://localhost:5000/packages/flutter/src/services/system_channels.dart.lib.js:2138:40)
at OptionalMethodChannel._invokeMethod
(http://localhost:5000/packages/flutter/src/services/system_channels.dart.lib.js:937:50)
at _invokeMethod.next (<anonymous>)
at runBody (http://localhost:5000/dart_sdk.js:37456:34)
at Object._async [as async] (http://localhost:5000/dart_sdk.js:37487:7)
at OptionalMethodChannel.[_invokeMethod]
(http://localhost:5000/packages/flutter/src/services/system_channels.dart.lib.js:935:20)
at OptionalMethodChannel.[_invokeMethod]
(http://localhost:5000/packages/flutter/src/services/system_channels.dart.lib.js:1042:34)
at OptionalMethodChannel.invokeMethod
(http://localhost:5000/packages/flutter/src/services/system_channels.dart.lib.js:1038:36)
at invokeMethod.next (<anonymous>)
at runBody (http://localhost:5000/dart_sdk.js:37456:34)
at Object._async [as async] (http://localhost:5000/dart_sdk.js:37487:7)
at OptionalMethodChannel.invokeMethod
(http://localhost:5000/packages/flutter/src/services/system_channels.dart.lib.js:1037:20)
at Function.selectSingleEntryHistory
(http://localhost:5000/packages/flutter/src/services/system_navigator.dart.lib.js:26:56)
at navigator$.NavigatorState.new.initState
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:24935:42)
at framework.StatefulElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:51379:54)
at framework.StatefulElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.InheritedElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.InheritedElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.InheritedElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.InheritedElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.InheritedElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.InheritedElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.InheritedElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.InheritedElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.InheritedElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.InheritedElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.InheritedElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.InheritedElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.InheritedElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.InheritedElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.InheritedElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.InheritedElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.InheritedElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.InheritedElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.StatelessElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.StatelessElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.StatelessElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.StatelessElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.StatelessElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.StatelessElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.InheritedElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.InheritedElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.InheritedElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.InheritedElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.InheritedElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.InheritedElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.StatelessElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.StatelessElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.StatelessElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.StatelessElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.StatelessElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.StatelessElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.StatefulElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.StatefulElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.StatefulElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.StatefulElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:51405:13)
at framework.StatefulElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.StatefulElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.StatefulElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:51398:27)
at framework.StatefulElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.InheritedElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.InheritedElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.InheritedElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.InheritedElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.InheritedElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.InheritedElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.StatefulElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.StatefulElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.StatefulElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.StatefulElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:51405:13)
at framework.StatefulElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.StatefulElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.StatefulElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:51398:27)
at framework.StatefulElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.StatelessElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.StatelessElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.StatelessElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.StatelessElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.StatelessElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.StatelessElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.InheritedElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.InheritedElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.InheritedElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.InheritedElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.InheritedElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.InheritedElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.SingleChildRenderObjectElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.SingleChildRenderObjectElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.SingleChildRenderObjectElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:44756:29)
at framework.StatelessElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.StatelessElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.StatelessElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.StatelessElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.StatelessElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.StatelessElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.StatelessElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.StatelessElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.StatelessElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.StatelessElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.StatelessElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.StatelessElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.StatelessElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.StatelessElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.StatelessElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.StatelessElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.StatelessElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.StatelessElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.InheritedElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.InheritedElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.InheritedElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.InheritedElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.InheritedElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.InheritedElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.InheritedElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.InheritedElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.InheritedElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.InheritedElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.InheritedElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.InheritedElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.SingleChildRenderObjectElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.SingleChildRenderObjectElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.SingleChildRenderObjectElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:44756:29)
at framework.StatefulElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.StatefulElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.StatefulElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.StatefulElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:51405:13)
at framework.StatefulElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.StatefulElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.StatefulElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:51398:27)
at framework.StatefulElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.InheritedElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.InheritedElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.InheritedElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.InheritedElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.InheritedElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.InheritedElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.StatefulElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.StatefulElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.StatefulElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.StatefulElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:51405:13)
at framework.StatefulElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.StatefulElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.StatefulElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:51398:27)
at framework.StatefulElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at _InheritedNotifierElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at _InheritedNotifierElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at _InheritedNotifierElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at _InheritedNotifierElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at _InheritedNotifierElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at _InheritedNotifierElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.StatefulElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.StatefulElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.StatefulElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.StatefulElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:51405:13)
at framework.StatefulElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.StatefulElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.StatefulElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:51398:27)
at framework.StatefulElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.InheritedElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.InheritedElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.InheritedElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.InheritedElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.InheritedElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.InheritedElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.StatefulElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.StatefulElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.StatefulElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.StatefulElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:51405:13)
at framework.StatefulElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.StatefulElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.StatefulElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:51398:27)
at framework.StatefulElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.InheritedElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.InheritedElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.InheritedElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.InheritedElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.InheritedElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.InheritedElement.new.mount
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30092:26)
at framework.StatefulElement.new.inflateWidget
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28926:16)
at framework.StatefulElement.new.updateChild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:28791:25)
at framework.StatefulElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30128:31)
at framework.StatefulElement.new.performRebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:51405:13)
at framework.StatefulElement.new.rebuild
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:29263:12)
at framework.StatefulElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:30096:12)
at framework.StatefulElement.new.[_firstBuild]
(http://localhost:5000/packages/flutter/src/widgets/widget_span.dart.lib.js:51398:27)
at framework.StatefulElement.new.mount
答案 0 :(得分:0)
因此问题的解决方案不存在,调试器不会提供错误来源(dart 文件)的相关信息。 但值得庆幸的是,特定问题仅出现在最新版本的 DEV 频道(Flutter 2.3.0-16.0.pre & Dart 2.14.0 (build 2.14.0-136.0.dev))中,并且在 master chanell 中一切正常,所以我不再需要来自调试器的正确(可用)堆栈跟踪来修复它。
特别感谢 nvoigt 的“帮助”,下次评论前请先阅读。