Created
February 18, 2020 16:29
-
-
Save hjJunior/2d2e3d0a2785968073fb4497843101f2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 User { | |
final String name; | |
final int age; | |
User({ this.name, this.age }); | |
} | |
void main() { | |
final user = User(name: 'Helio', age: 10); | |
print("Ola ${user.name}, você tem ${user.age}"); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment