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.
19 lines
402 B
19 lines
402 B
class Music{
|
|
String name;
|
|
String artist;
|
|
String linkCover;
|
|
|
|
Music(this.name, this.artist, this.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;
|
|
} |