Last active
February 20, 2022 15:02
-
-
Save faizan1947/809f64b1ba3f3972d4ad7f6975f6a743 to your computer and use it in GitHub Desktop.
Class and Constructor
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
void main() { | |
final person = Person(name: "Faizan", age: 33, height: 1.4); | |
print(person.name); | |
} | |
class Person { | |
Person({required this.age, required this.height, required this.name}); | |
String name; | |
int age; | |
double height; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment