Skip to content

Instantly share code, notes, and snippets.

@jmichalenko
Created October 22, 2022 19:57
Show Gist options
  • Save jmichalenko/3b50c6da6612f9e767e0d54ba13081b9 to your computer and use it in GitHub Desktop.
Save jmichalenko/3b50c6da6612f9e767e0d54ba13081b9 to your computer and use it in GitHub Desktop.
malevolent-destiny-4227

malevolent-destiny-4227

Created with <3 with dartpad.dev.

class Person {
String name;
int age;
Person({this.name = 'max', this.age = 30});
}
double addNumbers(double num1, double num2) {
//print(num1 + num2);
return num1 + num2;
}
void main() {
var p1 = Person(name: 'Max');
var p2 = Person(age: 31, name: 'Manu');
print(p1.name);
print(p2.name);
double firstResult;
firstResult = addNumbers(1,1);
print(firstResult + 1);
print('Hello!');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment