Skip to content

Instantly share code, notes, and snippets.

@jmichalenko
Created November 22, 2022 17:41
Show Gist options
  • Save jmichalenko/9010098b689997ca73c820e22ba30437 to your computer and use it in GitHub Desktop.
Save jmichalenko/9010098b689997ca73c820e22ba30437 to your computer and use it in GitHub Desktop.
loth-ray-8288
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