minor hashcode changes

This commit is contained in:
Thibault Deckers 2020-09-23 11:54:37 +09:00
parent 8ca38597e5
commit f78b466229
7 changed files with 8 additions and 8 deletions

View file

@ -83,7 +83,7 @@ class AlbumFilter extends CollectionFilter {
}
@override
int get hashCode => hashValues('AlbumFilter', album);
int get hashCode => hashValues(type, album);
@override
String toString() {

View file

@ -31,5 +31,5 @@ class FavouriteFilter extends CollectionFilter {
}
@override
int get hashCode => 'FavouriteFilter'.hashCode;
int get hashCode => type.hashCode;
}

View file

@ -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() {

View file

@ -80,5 +80,5 @@ class MimeFilter extends CollectionFilter {
}
@override
int get hashCode => hashValues('MimeFilter', mime);
int get hashCode => hashValues(type, mime);
}

View file

@ -68,5 +68,5 @@ class QueryFilter extends CollectionFilter {
}
@override
int get hashCode => hashValues('QueryFilter', query);
int get hashCode => hashValues(type, query);
}

View file

@ -43,7 +43,7 @@ class TagFilter extends CollectionFilter {
}
@override
int get hashCode => hashValues('TagFilter', tag);
int get hashCode => hashValues(type, tag);
@override
String toString() {

View file

@ -233,7 +233,7 @@ class ImageOpEvent {
}
@override
int get hashCode => hashValues('ImageOpEvent', success, uri);
int get hashCode => hashValues(success, uri);
@override
String toString() {