Published
- 1 min read
Error: Undefined name `main`. if (entrypoint.main is _UnaryFunction) {
The solution for this is noted below
Error: Undefined name main
. if (entrypoint.main is _UnaryFunction)
Solution
//Add this to your main.dart
void main() {
runApp(const MyApp());
}
Try other methods by searching on the site. That is if this doesn’t work