You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
341 B
24 lines
341 B
class Player {
|
|
final int _id;
|
|
String _name;
|
|
String _image;
|
|
|
|
// Constructor
|
|
Player(this._id, this._name, this._image);
|
|
|
|
// Getters and setters
|
|
int get id => _id;
|
|
|
|
String get name => _name;
|
|
|
|
set name(String value) {
|
|
_name = value;
|
|
}
|
|
|
|
String get image => _image;
|
|
|
|
set image(String value) {
|
|
_image = value;
|
|
}
|
|
}
|