My app was working perfectly and suddenly it started showing me compiler error. Here is the error:
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()
答案 0 :(得分:1)
这是known bug 36091和30381,应在下一发行版中修复。唯一的解决方法是运行flutter clean
。 (使用Android Studios工具-> Flutter-> Flutter Clean也应该起作用)。
答案 1 :(得分:1)