Home > Mobile >  I'm getting an error when creating my own widget in Flutter
I'm getting an error when creating my own widget in Flutter

Time:07-08

There is an error message in the problem section:A function body must be provided.how i can fix this red underline ? @ draws red under the sign

CodePudding user response:

You are missing a semicolon.

Try as follows: MyWidget({this,renk}); //you are missing a semicolon here.

  • Related