minor hashcode changes
This commit is contained in:
parent
8ca38597e5
commit
f78b466229
7 changed files with 8 additions and 8 deletions
|
@ -83,7 +83,7 @@ class AlbumFilter extends CollectionFilter {
|
|||
}
|
||||
|
||||
@override
|
||||
int get hashCode => hashValues('AlbumFilter', album);
|
||||
int get hashCode => hashValues(type, album);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
|
|
|
@ -31,5 +31,5 @@ class FavouriteFilter extends CollectionFilter {
|
|||
}
|
||||
|
||||
@override
|
||||
int get hashCode => 'FavouriteFilter'.hashCode;
|
||||
int get hashCode => type.hashCode;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ import 'package:aves/widgets/common/icons.dart';
|
|||
import 'package:flutter/widgets.dart';
|
||||
|
||||
class LocationFilter extends CollectionFilter {
|
||||
static const type = 'country';
|
||||
static const type = 'location';
|
||||
static const locationSeparator = ';';
|
||||
|
||||
final LocationLevel level;
|
||||
|
@ -57,7 +57,7 @@ class LocationFilter extends CollectionFilter {
|
|||
}
|
||||
|
||||
@override
|
||||
int get hashCode => hashValues('LocationFilter', level, _location);
|
||||
int get hashCode => hashValues(type, level, _location);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
|
|
|
@ -80,5 +80,5 @@ class MimeFilter extends CollectionFilter {
|
|||
}
|
||||
|
||||
@override
|
||||
int get hashCode => hashValues('MimeFilter', mime);
|
||||
int get hashCode => hashValues(type, mime);
|
||||
}
|
||||
|
|
|
@ -68,5 +68,5 @@ class QueryFilter extends CollectionFilter {
|
|||
}
|
||||
|
||||
@override
|
||||
int get hashCode => hashValues('QueryFilter', query);
|
||||
int get hashCode => hashValues(type, query);
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ class TagFilter extends CollectionFilter {
|
|||
}
|
||||
|
||||
@override
|
||||
int get hashCode => hashValues('TagFilter', tag);
|
||||
int get hashCode => hashValues(type, tag);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
|
|
|
@ -233,7 +233,7 @@ class ImageOpEvent {
|
|||
}
|
||||
|
||||
@override
|
||||
int get hashCode => hashValues('ImageOpEvent', success, uri);
|
||||
int get hashCode => hashValues(success, uri);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
|
|
Loading…
Reference in a new issue