Last active
May 3, 2020 14:33
-
-
Save rubgithub/d98ad76b6e985e6cff27ecc7aea07d29 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
void main() { | |
Nome(null).imprimir(); | |
} | |
class Nome { | |
Nome(this.nome) : assert(nome != null && nome.isNotEmpty); | |
final String nome; | |
imprimir(){ | |
print('Meu nome é $nome'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment