Single Line Multiple Line Comments
1. Using Double Forword Slash(//):
- The First method to add comment in flutter Dart is commenting single line only. so to make single line as comment we would use Double forward slash at the beginning of that particular line.
Example:
// This is Single Line Comment.
// double number = 12345 ;
var hello = 'hello world' ;
/* Container(
child: RaisedButton(
onPressed: () => callStaticMember(),
child: Text(' Click Here To Call Static Variable '),
textColor: Colors.white,
color: Colors.red,
)
), */