The function 'print' isn't defined. Try importing the library that defines 'print', correcting the name to the name of an existing function, or defining a function named 'print'.
Asked
Active
Viewed 314 times
0
-
1Show us the code which reproduces this problem. – julemand101 Aug 04 '22 at 15:10
-
@julemand101 Here's the code : if (event.status == Status.ERROR) { Future.delayed(const Duration(milliseconds: 100), () { print("Oops! Error"); }); } – Zohair Ahmed Aug 04 '22 at 15:11
-
Try with restarting your IDE, – Md. Yeasin Sheikh Aug 04 '22 at 15:14
-
could you use debugPrint() inside your widget instead, or the predefined dart function log(). look at this: https://stackoverflow.com/questions/49940719/how-to-log-data-to-the-flutter-console – mr.Penguin Aug 04 '22 at 15:18
1 Answers
0
Dart is case sensitive you will get this kind of error as a result of the wrong use of the case Check if you use Capital letters for the 'print' statement like "Print")

Ado Dixn
- 3
- 1