[ACCEPTED]-UnimplementedError (FLUTTER)-stateful
Accepted answer
The createState()
method includes a TODO
comment:
@override
State<StatefulWidget> createState() {
// TODO: implement createState
throw UnimplementedError();
}
This comment 4 is a kind reminder that we have something 3 left to do.
However, the throw UnimplementedError()
makes the reminder 2 less friendly, forcing us to complete our 1 TODO
task and remove the UnimplementedError()
line to make it work:
MyAppState createState() => MyAppState();
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.