Skip to content

Instantly share code, notes, and snippets.

@faizan1947
Last active February 20, 2022 15:02
Show Gist options
  • Save faizan1947/809f64b1ba3f3972d4ad7f6975f6a743 to your computer and use it in GitHub Desktop.
Save faizan1947/809f64b1ba3f3972d4ad7f6975f6a743 to your computer and use it in GitHub Desktop.
Class and Constructor
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