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