Last active
June 30, 2022 15:51
-
-
Save Sampath-Lokuge/7f3fcea985c008a93688d37ae7d9d549 to your computer and use it in GitHub Desktop.
My first dart code
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 characters
void main() { | |
const vicki = User(id: 24, name: 'Vicki'); | |
print(vicki.id); | |
} | |
class User { | |
final int id; | |
final String name; | |
const User({this.id=0, this.name = "anonymous"}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment