mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
Fix some lint warnings
This commit is contained in:
parent
7bd6605dea
commit
d9fcd3ace1
6 changed files with 14 additions and 12 deletions
|
@ -15,7 +15,7 @@ class Exif with EquatableMixin {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
// ignore: hash_and_equals
|
// ignore: hash_and_equals
|
||||||
bool operator ==(Object? other) => equals(other, isDeep: true);
|
bool operator ==(Object other) => equals(other, isDeep: true);
|
||||||
|
|
||||||
/// Compare two Exif objects
|
/// Compare two Exif objects
|
||||||
///
|
///
|
||||||
|
|
|
@ -97,7 +97,7 @@ class Metadata with EquatableMixin {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
// ignore: hash_and_equals
|
// ignore: hash_and_equals
|
||||||
bool operator ==(Object? other) => equals(other, isDeep: true);
|
bool operator ==(Object other) => equals(other, isDeep: true);
|
||||||
|
|
||||||
bool equals(Object? other, {bool isDeep = false}) {
|
bool equals(Object? other, {bool isDeep = false}) {
|
||||||
if (other is Metadata) {
|
if (other is Metadata) {
|
||||||
|
@ -326,7 +326,7 @@ class File with EquatableMixin implements FileDescriptor {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
// ignore: hash_and_equals
|
// ignore: hash_and_equals
|
||||||
bool operator ==(Object? other) => equals(other, isDeep: true);
|
bool operator ==(Object other) => equals(other, isDeep: true);
|
||||||
|
|
||||||
bool equals(Object? other, {bool isDeep = false}) {
|
bool equals(Object? other, {bool isDeep = false}) {
|
||||||
if (other is File) {
|
if (other is File) {
|
||||||
|
|
|
@ -11,7 +11,7 @@ class SizeInt {
|
||||||
SizeInt.square(int dimension) : this(dimension, dimension);
|
SizeInt.square(int dimension) : this(dimension, dimension);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object? other) {
|
bool operator ==(Object other) {
|
||||||
return other is SizeInt && width == other.width && height == other.height;
|
return other is SizeInt && width == other.width && height == other.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ class _VisibleItem implements Comparable<_VisibleItem> {
|
||||||
const _VisibleItem(this.index, this.item);
|
const _VisibleItem(this.index, this.item);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object? other) =>
|
bool operator ==(Object other) =>
|
||||||
other is _VisibleItem && index == other.index;
|
other is _VisibleItem && index == other.index;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -80,9 +80,10 @@ class Draggable<T extends Object> extends StatelessWidget {
|
||||||
return buildIndicator(AlignmentDirectional.centerStart,
|
return buildIndicator(AlignmentDirectional.centerStart,
|
||||||
candidateItems.isNotEmpty);
|
candidateItems.isNotEmpty);
|
||||||
},
|
},
|
||||||
onAccept: (item) {
|
onAcceptWithDetails: (details) {
|
||||||
_log.fine("[build] Dropping $item before $data");
|
_log.fine(
|
||||||
onDropBefore!(item);
|
"[build] Dropping ${details.data} before $data");
|
||||||
|
onDropBefore!(details.data);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -93,9 +94,10 @@ class Draggable<T extends Object> extends StatelessWidget {
|
||||||
return buildIndicator(AlignmentDirectional.centerEnd,
|
return buildIndicator(AlignmentDirectional.centerEnd,
|
||||||
candidateItems.isNotEmpty);
|
candidateItems.isNotEmpty);
|
||||||
},
|
},
|
||||||
onAccept: (item) {
|
onAcceptWithDetails: (details) {
|
||||||
_log.fine("[build] Dropping $item after $data");
|
_log.fine(
|
||||||
onDropAfter!(item);
|
"[build] Dropping ${details.data} after $data");
|
||||||
|
onDropAfter!(details.data);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -142,7 +142,7 @@ class _VisibleDate implements Comparable<_VisibleDate> {
|
||||||
const _VisibleDate(this.id, this.date);
|
const _VisibleDate(this.id, this.date);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object? other) => other is _VisibleDate && id == other.id;
|
bool operator ==(Object other) => other is _VisibleDate && id == other.id;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int compareTo(_VisibleDate other) => id.compareTo(other.id);
|
int compareTo(_VisibleDate other) => id.compareTo(other.id);
|
||||||
|
|
Loading…
Reference in a new issue