class Music { String name; String artist; String linkCover; late DateTime date; 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; void defineDate() { this.date = new DateTime.now(); } }