首页 > 解决方案 > 没有为“NumberFormat”类定义方法“toStringDeep”

问题描述

我的应用程序运行良好,突然它开始向我显示编译器错误。这是错误:

Compiler message:
org-dartlang-debug:synthetic_debug_expression:1:1: Error: Method not found: 'toStringDeep'.
toStringDeep()
^^^^^^^^^^^^
org-dartlang-debug:synthetic_debug_expression:1:1: Error: The method 'toStringDeep' isn't defined for the class 'NumberFormat'.
 - 'NumberFormat' is from 'package:intl/intl.dart' ('file:///Users/chandra/flutter/.pub-cache/hosted/pub.dartlang.org/intl-0.15.7/lib/intl.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toStringDeep'.
toStringDeep()

标签: dartflutter

解决方案


这是一个已知的错误 3609130381,应该在下一个版本中修复。唯一的解决方法是运行flutter clean. (使用 Android Studios Tools -> Flutter -> Flutter Clean 也应该可以工作)。


推荐阅读