-
-
Notifications
You must be signed in to change notification settings - Fork 171
/
Copy pathlyrics.dart
35 lines (31 loc) · 883 Bytes
/
lyrics.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import 'dart:io';
class LyricsModel {
final String lyrics;
final bool synced;
final bool isInCache;
final bool fromInternet;
final bool isEmbedded;
final File? file;
const LyricsModel({
required this.lyrics,
required this.synced,
required this.isInCache,
required this.fromInternet,
required this.isEmbedded,
required this.file,
});
@override
bool operator ==(covariant LyricsModel other) {
if (identical(this, other)) return true;
return other.lyrics == lyrics &&
other.synced == synced &&
other.isInCache == isInCache &&
other.fromInternet == fromInternet &&
other.isEmbedded == isEmbedded &&
other.file == file;
}
@override
int get hashCode {
return lyrics.hashCode ^ synced.hashCode ^ isInCache.hashCode ^ fromInternet.hashCode ^ isEmbedded.hashCode ^ file.hashCode;
}
}