Last active
June 30, 2022 15:51
-
-
Save Sampath-Lokuge/7f3fcea985c008a93688d37ae7d9d549 to your computer and use it in GitHub Desktop.
Revisions
-
Sampath-Lokuge revised this gist
Jun 30, 2022 . 1 changed file with 4 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,11 +4,10 @@ void main() { } class User { final int id; final String name; const User({this.id=0, this.name = "anonymous"}); } -
Sampath-Lokuge created this gist
Jun 30, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ void main() { const vicki = User(id: 24, name: 'Vicki'); print(vicki.id); } class User { final int id = 0; final String name = ''; const User({int id = 0, String name = "anonymous"}); }