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.
dafl_music/Sources/dafl_project_flutter/lib/model/music.dart

31 lines
656 B

import '../exceptions/api_state_exception.dart';
import '../main.dart';
class Music {
final String _id;
final String _name;
final String _artist;
final String _linkCover;
Music(this._id, this._name, this._artist, this._linkCover);
String get id => _id;
String get name => _name;
String get artist => _artist;
String get linkCover => _linkCover;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is Music &&
runtimeType == other.runtimeType &&
name == other.name &&
artist == other.artist;
@override
int get hashCode => name.hashCode ^ artist.hashCode;
}