format operator== according to flutter style guide (#48449)

This commit is contained in:
Alexandre Ardhuin
2020-01-09 17:23:02 +01:00
committed by Flutter GitHub Bot
parent 23ce192a8f
commit 82262d8896
84 changed files with 196 additions and 197 deletions

View File

@@ -266,7 +266,7 @@ class BoardPoint {
// Only compares by location.
@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (other.runtimeType != runtimeType) {
return false;
}

View File

@@ -17,13 +17,14 @@ class GalleryDemoCategory {
final IconData icon;
@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other))
return true;
if (runtimeType != other.runtimeType)
if (other.runtimeType != runtimeType)
return false;
return other is GalleryDemoCategory
&& other.name == name && other.icon == icon;
&& other.name == name
&& other.icon == icon;
}
@override

View File

@@ -55,8 +55,8 @@ class GalleryOptions {
}
@override
bool operator ==(dynamic other) {
if (runtimeType != other.runtimeType)
bool operator ==(Object other) {
if (other.runtimeType != runtimeType)
return false;
return other is GalleryOptions
&& other.themeMode == themeMode

View File

@@ -11,8 +11,8 @@ class GalleryTextScaleValue {
final String label;
@override
bool operator ==(dynamic other) {
if (runtimeType != other.runtimeType)
bool operator ==(Object other) {
if (other.runtimeType != runtimeType)
return false;
return other is GalleryTextScaleValue
&& other.scale == scale
@@ -44,12 +44,12 @@ class GalleryVisualDensityValue {
final String label;
@override
bool operator ==(dynamic other) {
if (runtimeType != other.runtimeType)
bool operator ==(Object other) {
if (other.runtimeType != runtimeType)
return false;
return other is GalleryVisualDensityValue
&& visualDensity == other.visualDensity
&& label == other.label;
&& other.visualDensity == visualDensity
&& other.label == label;
}
@override