[ACCEPTED]-UnimplementedError (FLUTTER)-stateful

Accepted answer
Score: 10

The createState() method includes a TODO comment:

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();

More Related questions