Skip to content

Instantly share code, notes, and snippets.

@MelvinRB27
Created October 3, 2023 18:14
Show Gist options
  • Save MelvinRB27/4d57d2cf5b1c780ac93eb7b6de193d46 to your computer and use it in GitHub Desktop.
Save MelvinRB27/4d57d2cf5b1c780ac93eb7b6de193d46 to your computer and use it in GitHub Desktop.
divine-spray-7632
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