2015-12-01 23:01:36 -07:00
|
|
|
// #docregion
|
|
|
|
class Hero {
|
2016-07-07 14:00:19 -07:00
|
|
|
final int id;
|
2015-12-01 23:01:36 -07:00
|
|
|
String name;
|
|
|
|
|
2016-01-07 15:11:44 -08:00
|
|
|
Hero(this.id, this.name);
|
2016-07-07 14:00:19 -07:00
|
|
|
|
2016-01-07 15:11:44 -08:00
|
|
|
String toString() => '$id: $name';
|
2015-12-01 23:01:36 -07:00
|
|
|
}
|