format operator== according to flutter style guide (#48449)
This commit is contained in:
committed by
Flutter GitHub Bot
parent
23ce192a8f
commit
82262d8896
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user