Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class CollectionReference extends Query {
}

@override
bool operator ==(dynamic other) =>
bool operator ==(Object other) =>
other is CollectionReference &&
other.firestore == firestore &&
other.path == path;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class DocumentReference {

@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes
bool operator ==(dynamic other) =>
bool operator ==(Object other) =>
other is DocumentReference &&
other.firestore == firestore &&
other.path == path;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class FirebaseFirestore extends FirebasePluginPlatform {

@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes
bool operator ==(dynamic other) =>
bool operator ==(Object other) =>
other is FirebaseFirestore && other.app.name == app.name;

@override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Blob {
final Uint8List bytes;

@override
bool operator ==(dynamic other) =>
bool operator ==(Object other) =>
other is Blob &&
const DeepCollectionEquality().equals(other.bytes, bytes);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class FieldPath {
assert(!path.contains(']'), _reserved);

@override
bool operator ==(dynamic other) =>
bool operator ==(Object other) =>
other is FieldPath &&
const ListEquality().equals(other.components, components);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class GeoPoint {
final double longitude; // ignore: public_member_api_docs

@override
bool operator ==(dynamic other) =>
bool operator ==(Object other) =>
other is GeoPoint &&
other.latitude == latitude &&
other.longitude == longitude;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class Pointer {
}

@override
bool operator ==(dynamic other) => other is Pointer && other.path == path;
bool operator ==(Object other) => other is Pointer && other.path == path;

@override
int get hashCode => path.hashCode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class MethodChannelFieldValue {
final dynamic value;

@override
bool operator ==(dynamic other) =>
bool operator ==(Object other) =>
other is MethodChannelFieldValue &&
other.type == type &&
const DeepCollectionEquality().equals(other.value, value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Settings {
}

@override
bool operator ==(dynamic other) =>
bool operator ==(Object other) =>
other is Settings && other.asMap.toString() == asMap.toString();

@override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Timestamp implements Comparable<Timestamp> {
int get hashCode => hashValues(seconds, nanoseconds);

@override
bool operator ==(dynamic other) =>
bool operator ==(Object other) =>
other is Timestamp &&
other.seconds == seconds &&
other.nanoseconds == nanoseconds;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class FieldValueWeb {

@override
//ignore: avoid_equals_and_hash_code_on_mutable_classes
bool operator ==(dynamic other) =>
bool operator ==(Object other) =>
other is FieldValueWeb && other.data == data;

@override
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_core/firebase_core/lib/src/firebase.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Firebase {
// TODO(rrousselGit): remove ==/hashCode
@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (other is! Firebase) return false;
return other.hashCode == hashCode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class FirebaseApp {

@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (other is! FirebaseApp) return false;
return other.name == name && other.options == options;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,4 @@ class MockFirebaseCore extends Mock
}

// ignore: avoid_implementing_value_types
class FakeFirebaseAppPlatform extends Fake implements FirebaseAppPlatform {
@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes, hash_and_equals
bool operator ==(Object? other) {
return super == other;
}
}
class FakeFirebaseAppPlatform extends Fake implements FirebaseAppPlatform {}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class FirebaseException implements Exception {
final StackTrace? stackTrace;

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (other is! FirebaseException) return false;
return other.hashCode == hashCode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class FirebaseOptions {

// Required from `fromMap` comparison
@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (other is! FirebaseOptions) return false;
return other.asMap.toString() == asMap.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class FirebaseAppPlatform extends PlatformInterface {

@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes
bool operator ==(Object? other) {
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (other is! FirebaseAppPlatform) return false;
return other.name == name && other.options == options;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,7 @@ class ImplementsFirebasePlatform implements FirebasePlatform {
}

// ignore: avoid_implementing_value_types
class FakeFirebaseAppPlatform extends Fake implements FirebaseAppPlatform {
@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes, hash_and_equals, false positive
bool operator ==(Object? other) {
return super == other;
}
}
class FakeFirebaseAppPlatform extends Fake implements FirebaseAppPlatform {}

class ExtendsFirebasePlatform extends FirebasePlatform {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class FirebaseStorage extends FirebasePluginPlatform {
}

@override
bool operator ==(Object? other) =>
bool operator ==(Object other) =>
other is FirebaseStorage &&
other.app.name == app.name &&
other.bucket == bucket;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class Reference {
}

@override
bool operator ==(Object? other) =>
bool operator ==(Object other) =>
other is Reference &&
other.fullPath == fullPath &&
other.storage == storage;
Expand Down