mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 08:46:18 +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
|
||||
// ignore: hash_and_equals
|
||||
bool operator ==(Object? other) => equals(other, isDeep: true);
|
||||
bool operator ==(Object other) => equals(other, isDeep: true);
|
||||
|
||||
/// Compare two Exif objects
|
||||
///
|
||||
|
|
|
@ -97,7 +97,7 @@ class Metadata with EquatableMixin {
|
|||
|
||||
@override
|
||||
// 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}) {
|
||||
if (other is Metadata) {
|
||||
|
@ -326,7 +326,7 @@ class File with EquatableMixin implements FileDescriptor {
|
|||
|
||||
@override
|
||||
// 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}) {
|
||||
if (other is File) {
|
||||
|
|
|
@ -11,7 +11,7 @@ class SizeInt {
|
|||
SizeInt.square(int dimension) : this(dimension, dimension);
|
||||
|
||||
@override
|
||||
bool operator ==(Object? other) {
|
||||
bool operator ==(Object other) {
|
||||
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);
|
||||
|
||||
@override
|
||||
bool operator ==(Object? other) =>
|
||||
bool operator ==(Object other) =>
|
||||
other is _VisibleItem && index == other.index;
|
||||
|
||||
@override
|
||||
|
|
|
@ -80,9 +80,10 @@ class Draggable<T extends Object> extends StatelessWidget {
|
|||
return buildIndicator(AlignmentDirectional.centerStart,
|
||||
candidateItems.isNotEmpty);
|
||||
},
|
||||
onAccept: (item) {
|
||||
_log.fine("[build] Dropping $item before $data");
|
||||
onDropBefore!(item);
|
||||
onAcceptWithDetails: (details) {
|
||||
_log.fine(
|
||||
"[build] Dropping ${details.data} before $data");
|
||||
onDropBefore!(details.data);
|
||||
},
|
||||
),
|
||||
),
|
||||
|
@ -93,9 +94,10 @@ class Draggable<T extends Object> extends StatelessWidget {
|
|||
return buildIndicator(AlignmentDirectional.centerEnd,
|
||||
candidateItems.isNotEmpty);
|
||||
},
|
||||
onAccept: (item) {
|
||||
_log.fine("[build] Dropping $item after $data");
|
||||
onDropAfter!(item);
|
||||
onAcceptWithDetails: (details) {
|
||||
_log.fine(
|
||||
"[build] Dropping ${details.data} after $data");
|
||||
onDropAfter!(details.data);
|
||||
},
|
||||
),
|
||||
),
|
||||
|
|
|
@ -142,7 +142,7 @@ class _VisibleDate implements Comparable<_VisibleDate> {
|
|||
const _VisibleDate(this.id, this.date);
|
||||
|
||||
@override
|
||||
bool operator ==(Object? other) => other is _VisibleDate && id == other.id;
|
||||
bool operator ==(Object other) => other is _VisibleDate && id == other.id;
|
||||
|
||||
@override
|
||||
int compareTo(_VisibleDate other) => id.compareTo(other.id);
|
||||
|
|
Loading…
Reference in a new issue