12 lines
155 B
Dart
12 lines
155 B
Dart
// #docregion
|
|
class Hero {
|
|
static int _nextId = 1;
|
|
int id;
|
|
String name;
|
|
String power;
|
|
|
|
Hero(this.name, {this.power}) {
|
|
id = _nextId++;
|
|
}
|
|
}
|