Created with <3 with dartpad.dev.
Created
October 3, 2023 18:14
-
-
Save MelvinRB27/4d57d2cf5b1c780ac93eb7b6de193d46 to your computer and use it in GitHub Desktop.
divine-spray-7632
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() { | |
//print( kLOK( name: 'CARA DE SALAMI', klok: 'KLOK CON KLOK') ); | |
final he = Hero('Melvin', 'Flash'); | |
print('Name: ${he.name}'); | |
print('Power: ${he.power}'); | |
} | |
String kLOK({required String klok, String name = ''}) { | |
return '$klok $name'; | |
} | |
class Hero { | |
String name; | |
String power; | |
Hero(this.name, this.power); | |
/*hero(String pName, String pPower) | |
: | |
name = pName, | |
power = pPower;*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment