Created with <3 with dartpad.dev.
Created
November 22, 2022 17:41
-
-
Save jmichalenko/9010098b689997ca73c820e22ba30437 to your computer and use it in GitHub Desktop.
loth-ray-8288
This file contains 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
class Person { | |
String? name; | |
int? age; | |
Person({this.name, this.age}); | |
} | |
void main() { | |
var p1 = Person(name:'Max', age: 16); | |
var p2 = Person(name: 'Jerry', age: 18); | |
print(p1.name); | |
print(p1.age); | |
print(p2.name); | |
print(p2.age); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment