处理 '==' operators should be non-nullable.
This commit is contained in:
parent
2330225394
commit
2c1bcdbd93
|
@ -54,10 +54,10 @@ class CameraPosition {
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(dynamic other) {
|
bool operator ==(Object other) {
|
||||||
if (identical(this, other)) return true;
|
if (identical(this, other)) return true;
|
||||||
if (runtimeType != other.runtimeType) return false;
|
if (runtimeType != other.runtimeType) return false;
|
||||||
final CameraPosition typedOther = other;
|
final CameraPosition typedOther = other as CameraPosition;
|
||||||
return bearing == typedOther.bearing &&
|
return bearing == typedOther.bearing &&
|
||||||
target == typedOther.target &&
|
target == typedOther.target &&
|
||||||
tilt == typedOther.tilt &&
|
tilt == typedOther.tilt &&
|
||||||
|
|
|
@ -40,10 +40,10 @@ class CameraTargetBounds {
|
||||||
dynamic toJson() => <dynamic>[bounds?.toJson()];
|
dynamic toJson() => <dynamic>[bounds?.toJson()];
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(dynamic other) {
|
bool operator ==(Object other) {
|
||||||
if (identical(this, other)) return true;
|
if (identical(this, other)) return true;
|
||||||
if (runtimeType != other.runtimeType) return false;
|
if (runtimeType != other.runtimeType) return false;
|
||||||
final CameraTargetBounds typedOther = other;
|
final CameraTargetBounds typedOther = other as CameraTargetBounds;
|
||||||
return bounds == typedOther.bounds;
|
return bounds == typedOther.bounds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,10 +86,10 @@ class MinMaxZoomPreference {
|
||||||
dynamic toJson() => <dynamic>[minZoom, maxZoom];
|
dynamic toJson() => <dynamic>[minZoom, maxZoom];
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(dynamic other) {
|
bool operator ==(Object other) {
|
||||||
if (identical(this, other)) return true;
|
if (identical(this, other)) return true;
|
||||||
if (runtimeType != other.runtimeType) return false;
|
if (runtimeType != other.runtimeType) return false;
|
||||||
final MinMaxZoomPreference typedOther = other;
|
final MinMaxZoomPreference typedOther = other as MinMaxZoomPreference;
|
||||||
return minZoom == typedOther.minZoom && maxZoom == typedOther.maxZoom;
|
return minZoom == typedOther.minZoom && maxZoom == typedOther.maxZoom;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue