Answers for "A function body must be provided."

0

A function body must be provided.

You have a missing semi-colon after super(key: key). Add the semi-colon.
Posted by: Guest on February-01-2022
0

A function body must be provided.

class NaberMain extends StatefulWidget {
  NaberMain({Key key}) : super(key: key); //This is the semi-colon.

  @override 
  _NaberMainState createState() => _NaberMainState();
}

class _NaberMainState extends State<NaberMain> {
  @override
  Widget build(BuildContext context) {
    return Container(
    );
  }
}
Posted by: Guest on February-01-2022

Code answers related to "A function body must be provided."

Browse Popular Code Answers by Language