Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
82262d88
Commit
82262d88
authored
Jan 09, 2020
by
Alexandre Ardhuin
Committed by
Flutter GitHub Bot
Jan 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format operator== according to flutter style guide (#48449)
parent
23ce192a
Changes
84
Hide whitespace changes
Inline
Side-by-side
Showing
84 changed files
with
196 additions
and
197 deletions
+196
-197
running_processes.dart
dev/devicelab/lib/framework/running_processes.dart
+4
-4
vitool.dart
dev/tools/vitool/lib/vitool.dart
+3
-3
transformations_demo_board.dart
.../lib/demo/transformations/transformations_demo_board.dart
+1
-1
demos.dart
examples/flutter_gallery/lib/gallery/demos.dart
+4
-3
options.dart
examples/flutter_gallery/lib/gallery/options.dart
+2
-2
scales.dart
examples/flutter_gallery/lib/gallery/scales.dart
+6
-6
colors.dart
packages/flutter/lib/src/cupertino/colors.dart
+13
-12
route.dart
packages/flutter/lib/src/cupertino/route.dart
+2
-2
key.dart
packages/flutter/lib/src/foundation/key.dart
+1
-1
stack_frame.dart
packages/flutter/lib/src/foundation/stack_frame.dart
+9
-9
velocity_tracker.dart
packages/flutter/lib/src/gestures/velocity_tracker.dart
+1
-1
app_bar_theme.dart
packages/flutter/lib/src/material/app_bar_theme.dart
+1
-1
banner_theme.dart
packages/flutter/lib/src/material/banner_theme.dart
+1
-1
bottom_app_bar_theme.dart
packages/flutter/lib/src/material/bottom_app_bar_theme.dart
+1
-1
button_theme.dart
packages/flutter/lib/src/material/button_theme.dart
+1
-1
card_theme.dart
packages/flutter/lib/src/material/card_theme.dart
+1
-1
chip.dart
packages/flutter/lib/src/material/chip.dart
+1
-1
dialog_theme.dart
packages/flutter/lib/src/material/dialog_theme.dart
+1
-1
divider_theme.dart
packages/flutter/lib/src/material/divider_theme.dart
+1
-1
dropdown.dart
packages/flutter/lib/src/material/dropdown.dart
+1
-1
expansion_panel.dart
packages/flutter/lib/src/material/expansion_panel.dart
+1
-1
input_border.dart
packages/flutter/lib/src/material/input_border.dart
+4
-4
input_decorator.dart
packages/flutter/lib/src/material/input_decorator.dart
+4
-4
mergeable_material.dart
packages/flutter/lib/src/material/mergeable_material.dart
+1
-1
outline_button.dart
packages/flutter/lib/src/material/outline_button.dart
+2
-2
page_transitions_theme.dart
...ages/flutter/lib/src/material/page_transitions_theme.dart
+2
-2
scaffold.dart
packages/flutter/lib/src/material/scaffold.dart
+1
-1
snack_bar_theme.dart
packages/flutter/lib/src/material/snack_bar_theme.dart
+1
-1
tab_bar_theme.dart
packages/flutter/lib/src/material/tab_bar_theme.dart
+1
-1
text_theme.dart
packages/flutter/lib/src/material/text_theme.dart
+1
-1
theme_data.dart
packages/flutter/lib/src/material/theme_data.dart
+1
-1
time.dart
packages/flutter/lib/src/material/time.dart
+1
-1
_network_image_io.dart
packages/flutter/lib/src/painting/_network_image_io.dart
+1
-1
_network_image_web.dart
packages/flutter/lib/src/painting/_network_image_web.dart
+1
-1
alignment.dart
packages/flutter/lib/src/painting/alignment.dart
+1
-1
beveled_rectangle_border.dart
...es/flutter/lib/src/painting/beveled_rectangle_border.dart
+2
-2
border_radius.dart
packages/flutter/lib/src/painting/border_radius.dart
+2
-2
borders.dart
packages/flutter/lib/src/painting/borders.dart
+4
-4
box_border.dart
packages/flutter/lib/src/painting/box_border.dart
+4
-4
box_decoration.dart
packages/flutter/lib/src/painting/box_decoration.dart
+2
-2
box_shadow.dart
packages/flutter/lib/src/painting/box_shadow.dart
+2
-2
circle_border.dart
packages/flutter/lib/src/painting/circle_border.dart
+2
-2
colors.dart
packages/flutter/lib/src/painting/colors.dart
+3
-3
continuous_rectangle_border.dart
...flutter/lib/src/painting/continuous_rectangle_border.dart
+2
-2
decoration_image.dart
packages/flutter/lib/src/painting/decoration_image.dart
+2
-2
edge_insets.dart
packages/flutter/lib/src/painting/edge_insets.dart
+1
-1
flutter_logo.dart
packages/flutter/lib/src/painting/flutter_logo.dart
+1
-1
gradient.dart
packages/flutter/lib/src/painting/gradient.dart
+6
-6
image_provider.dart
packages/flutter/lib/src/painting/image_provider.dart
+5
-5
image_resolution.dart
packages/flutter/lib/src/painting/image_resolution.dart
+1
-1
image_stream.dart
packages/flutter/lib/src/painting/image_stream.dart
+1
-1
inline_span.dart
packages/flutter/lib/src/painting/inline_span.dart
+7
-6
rounded_rectangle_border.dart
...es/flutter/lib/src/painting/rounded_rectangle_border.dart
+4
-4
shape_decoration.dart
packages/flutter/lib/src/painting/shape_decoration.dart
+2
-2
stadium_border.dart
packages/flutter/lib/src/painting/stadium_border.dart
+6
-6
strut_style.dart
packages/flutter/lib/src/painting/strut_style.dart
+1
-1
text_span.dart
packages/flutter/lib/src/painting/text_span.dart
+1
-1
text_style.dart
packages/flutter/lib/src/painting/text_style.dart
+1
-1
box.dart
packages/flutter/lib/src/rendering/box.dart
+3
-3
sliver.dart
packages/flutter/lib/src/rendering/sliver.dart
+1
-1
stack.dart
packages/flutter/lib/src/rendering/stack.dart
+1
-1
table_border.dart
packages/flutter/lib/src/rendering/table_border.dart
+2
-2
semantics.dart
packages/flutter/lib/src/semantics/semantics.dart
+3
-3
keyboard_key.dart
packages/flutter/lib/src/services/keyboard_key.dart
+2
-2
raw_keyboard.dart
packages/flutter/lib/src/services/raw_keyboard.dart
+6
-4
system_chrome.dart
packages/flutter/lib/src/services/system_chrome.dart
+1
-1
text_editing.dart
packages/flutter/lib/src/services/text_editing.dart
+1
-1
text_input.dart
packages/flutter/lib/src/services/text_input.dart
+2
-2
async.dart
packages/flutter/lib/src/widgets/async.dart
+1
-1
framework.dart
packages/flutter/lib/src/widgets/framework.dart
+3
-3
icon_data.dart
packages/flutter/lib/src/widgets/icon_data.dart
+2
-2
icon_theme_data.dart
packages/flutter/lib/src/widgets/icon_theme_data.dart
+1
-1
page_storage.dart
packages/flutter/lib/src/widgets/page_storage.dart
+1
-1
widget_inspector.dart
packages/flutter/lib/src/widgets/widget_inspector.dart
+2
-2
widget_span.dart
packages/flutter/lib/src/widgets/widget_span.dart
+1
-1
fake_platform_views.dart
packages/flutter/test/services/fake_platform_views.dart
+7
-9
key_test.dart
packages/flutter/test/widgets/key_test.dart
+1
-1
driver.dart
packages/flutter_driver/lib/src/driver/driver.dart
+1
-1
matchers_test.dart
packages/flutter_test/test/matchers_test.dart
+1
-1
asset.dart
packages/flutter_tools/lib/src/asset.dart
+1
-1
fingerprint.dart
packages/flutter_tools/lib/src/base/fingerprint.dart
+1
-1
version.dart
packages/flutter_tools/lib/src/base/version.dart
+5
-5
device.dart
packages/flutter_tools/lib/src/device.dart
+3
-5
emulator.dart
packages/flutter_tools/lib/src/emulator.dart
+3
-5
No files found.
dev/devicelab/lib/framework/running_processes.dart
View file @
82262d88
...
...
@@ -19,10 +19,10 @@ class RunningProcessInfo {
@override
bool
operator
==(
Object
other
)
{
return
other
is
RunningProcessInfo
&&
other
.
pid
==
pid
&&
other
.
commandLine
==
commandLine
&&
other
.
creationDate
==
creationDate
;
return
other
is
RunningProcessInfo
&&
other
.
pid
==
pid
&&
other
.
commandLine
==
commandLine
&&
other
.
creationDate
==
creationDate
;
}
@override
...
...
dev/tools/vitool/lib/vitool.dart
View file @
82262d88
...
...
@@ -268,7 +268,7 @@ class FrameData {
@override
bool
operator
==(
Object
other
)
{
if
(
runtimeType
!=
other
.
runtimeType
)
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
FrameData
&&
other
.
size
==
size
...
...
@@ -320,7 +320,7 @@ class SvgPath {
@override
bool
operator
==(
Object
other
)
{
if
(
runtimeType
!=
other
.
runtimeType
)
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
SvgPath
&&
other
.
id
==
id
...
...
@@ -369,7 +369,7 @@ class SvgPathCommand {
@override
bool
operator
==(
Object
other
)
{
if
(
runtimeType
!=
other
.
runtimeType
)
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
SvgPathCommand
&&
other
.
type
==
type
...
...
examples/flutter_gallery/lib/demo/transformations/transformations_demo_board.dart
View file @
82262d88
...
...
@@ -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
;
}
...
...
examples/flutter_gallery/lib/gallery/demos.dart
View file @
82262d88
...
...
@@ -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
...
...
examples/flutter_gallery/lib/gallery/options.dart
View file @
82262d88
...
...
@@ -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
...
...
examples/flutter_gallery/lib/gallery/scales.dart
View file @
82262d88
...
...
@@ -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
...
...
packages/flutter/lib/src/cupertino/colors.dart
View file @
82262d88
...
...
@@ -1000,20 +1000,21 @@ class CupertinoDynamicColor extends Color with DiagnosticableMixin implements Di
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
return
other
.
runtimeType
==
runtimeType
&&
value
==
other
.
value
&&
color
==
other
.
color
&&
darkColor
==
other
.
darkColor
&&
highContrastColor
==
other
.
highContrastColor
&&
darkHighContrastColor
==
other
.
darkHighContrastColor
&&
elevatedColor
==
other
.
elevatedColor
&&
darkElevatedColor
==
other
.
darkElevatedColor
&&
highContrastElevatedColor
==
other
.
highContrastElevatedColor
&&
darkHighContrastElevatedColor
==
other
.
darkHighContrastElevatedColor
;
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
CupertinoDynamicColor
&&
other
.
value
==
value
&&
other
.
color
==
color
&&
other
.
darkColor
==
darkColor
&&
other
.
highContrastColor
==
highContrastColor
&&
other
.
darkHighContrastColor
==
darkHighContrastColor
&&
other
.
elevatedColor
==
elevatedColor
&&
other
.
darkElevatedColor
==
darkElevatedColor
&&
other
.
highContrastElevatedColor
==
highContrastElevatedColor
&&
other
.
darkHighContrastElevatedColor
==
darkHighContrastElevatedColor
;
}
@override
...
...
packages/flutter/lib/src/cupertino/route.dart
View file @
82262d88
...
...
@@ -734,8 +734,8 @@ class _CupertinoEdgeShadowDecoration extends Decoration {
}
@override
bool
operator
==(
dynamic
other
)
{
if
(
runtimeType
!=
other
.
runtimeType
)
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
_CupertinoEdgeShadowDecoration
&&
other
.
edgeGradient
==
edgeGradient
;
...
...
packages/flutter/lib/src/foundation/key.dart
View file @
82262d88
...
...
@@ -70,7 +70,7 @@ class ValueKey<T> extends LocalKey {
final
T
value
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
ValueKey
<
T
>
...
...
packages/flutter/lib/src/foundation/stack_frame.dart
View file @
82262d88
...
...
@@ -213,16 +213,16 @@ class StackFrame {
@override
bool
operator
==(
Object
other
)
{
if
(
runtimeType
!=
other
.
runtimeType
)
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
StackFrame
&&
number
==
other
.
number
&&
package
==
other
.
package
&&
line
==
other
.
line
&&
column
==
other
.
column
&&
className
==
other
.
className
&&
method
==
other
.
method
&&
source
==
other
.
source
;
return
other
is
StackFrame
&&
other
.
number
==
number
&&
other
.
package
==
package
&&
other
.
line
==
line
&&
other
.
column
==
column
&&
other
.
className
==
className
&&
other
.
method
==
method
&&
other
.
source
==
source
;
}
@override
...
...
packages/flutter/lib/src/gestures/velocity_tracker.dart
View file @
82262d88
...
...
@@ -62,7 +62,7 @@ class Velocity {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
return
other
is
Velocity
&&
other
.
pixelsPerSecond
==
pixelsPerSecond
;
}
...
...
packages/flutter/lib/src/material/app_bar_theme.dart
View file @
82262d88
...
...
@@ -123,7 +123,7 @@ class AppBarTheme extends Diagnosticable {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
if
(
other
.
runtimeType
!=
runtimeType
)
...
...
packages/flutter/lib/src/material/banner_theme.dart
View file @
82262d88
...
...
@@ -89,7 +89,7 @@ class MaterialBannerThemeData extends Diagnosticable {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
if
(
other
.
runtimeType
!=
runtimeType
)
...
...
packages/flutter/lib/src/material/bottom_app_bar_theme.dart
View file @
82262d88
...
...
@@ -87,7 +87,7 @@ class BottomAppBarTheme extends Diagnosticable {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
if
(
other
.
runtimeType
!=
runtimeType
)
...
...
packages/flutter/lib/src/material/button_theme.dart
View file @
82262d88
...
...
@@ -904,7 +904,7 @@ class ButtonThemeData extends Diagnosticable {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
ButtonThemeData
...
...
packages/flutter/lib/src/material/card_theme.dart
View file @
82262d88
...
...
@@ -117,7 +117,7 @@ class CardTheme extends Diagnosticable {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
if
(
other
.
runtimeType
!=
runtimeType
)
...
...
packages/flutter/lib/src/material/chip.dart
View file @
82262d88
...
...
@@ -2180,7 +2180,7 @@ class _ChipRenderTheme {
final
bool
canTapBody
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
{
return
true
;
}
...
...
packages/flutter/lib/src/material/dialog_theme.dart
View file @
82262d88
...
...
@@ -104,7 +104,7 @@ class DialogTheme extends Diagnosticable {
int
get
hashCode
=>
shape
.
hashCode
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
if
(
other
.
runtimeType
!=
runtimeType
)
...
...
packages/flutter/lib/src/material/divider_theme.dart
View file @
82262d88
...
...
@@ -105,7 +105,7 @@ class DividerThemeData extends Diagnosticable {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
if
(
other
.
runtimeType
!=
runtimeType
)
...
...
packages/flutter/lib/src/material/dropdown.dart
View file @
82262d88
...
...
@@ -366,7 +366,7 @@ class _DropdownRouteResult<T> {
final
T
result
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
return
other
is
_DropdownRouteResult
<
T
>
&&
other
.
result
==
result
;
}
...
...
packages/flutter/lib/src/material/expansion_panel.dart
View file @
82262d88
...
...
@@ -24,7 +24,7 @@ class _SaltedKey<S, V> extends LocalKey {
final
V
value
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
_SaltedKey
<
S
,
V
>
...
...
packages/flutter/lib/src/material/input_border.dart
View file @
82262d88
...
...
@@ -235,10 +235,10 @@ class UnderlineInputBorder extends InputBorder {
}
@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
InputBorder
&&
other
.
borderSide
==
borderSide
;
...
...
@@ -492,10 +492,10 @@ class OutlineInputBorder extends InputBorder {
}
@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
OutlineInputBorder
&&
other
.
borderSide
==
borderSide
...
...
packages/flutter/lib/src/material/input_decorator.dart
View file @
82262d88
...
...
@@ -39,10 +39,10 @@ class _InputBorderGap extends ChangeNotifier {
}
@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
_InputBorderGap
&&
other
.
start
==
start
...
...
@@ -525,7 +525,7 @@ class _Decoration {
final
Widget
container
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
if
(
other
.
runtimeType
!=
runtimeType
)
...
...
@@ -3189,7 +3189,7 @@ class InputDecoration {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
if
(
other
.
runtimeType
!=
runtimeType
)
...
...
packages/flutter/lib/src/material/mergeable_material.dart
View file @
82262d88
...
...
@@ -631,7 +631,7 @@ class _MergeableMaterialSliceKey extends GlobalKey {
final
LocalKey
value
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
return
other
is
_MergeableMaterialSliceKey
&&
other
.
value
==
value
;
}
...
...
packages/flutter/lib/src/material/outline_button.dart
View file @
82262d88
...
...
@@ -552,10 +552,10 @@ class _OutlineBorder extends ShapeBorder implements MaterialStateProperty<ShapeB
}
@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
_OutlineBorder
&&
other
.
side
==
side
...
...
packages/flutter/lib/src/material/page_transitions_theme.dart
View file @
82262d88
...
...
@@ -529,12 +529,12 @@ class PageTransitionsTheme extends Diagnosticable {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
if
(
identical
(
builders
,
other
.
builders
))
if
(
other
is
PageTransitionsTheme
&&
identical
(
builders
,
other
.
builders
))
return
true
;
return
other
is
PageTransitionsTheme
&&
listEquals
<
PageTransitionsBuilder
>(
_all
(
other
.
builders
),
_all
(
builders
));
...
...
packages/flutter/lib/src/material/scaffold.dart
View file @
82262d88
...
...
@@ -314,7 +314,7 @@ class _BodyBoxConstraints extends BoxConstraints {
// If the height of the bottom widgets has changed, even though the constraints'
// min and max values have not, we still want performLayout to happen.
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
super
!=
other
)
return
false
;
return
other
is
_BodyBoxConstraints
...
...
packages/flutter/lib/src/material/snack_bar_theme.dart
View file @
82262d88
...
...
@@ -156,7 +156,7 @@ class SnackBarThemeData extends Diagnosticable {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
if
(
other
.
runtimeType
!=
runtimeType
)
...
...
packages/flutter/lib/src/material/tab_bar_theme.dart
View file @
82262d88
...
...
@@ -117,7 +117,7 @@ class TabBarTheme extends Diagnosticable {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
if
(
other
.
runtimeType
!=
runtimeType
)
...
...
packages/flutter/lib/src/material/text_theme.dart
View file @
82262d88
...
...
@@ -476,7 +476,7 @@ class TextTheme extends Diagnosticable {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
if
(
other
.
runtimeType
!=
runtimeType
)
...
...
packages/flutter/lib/src/material/theme_data.dart
View file @
82262d88
...
...
@@ -1816,7 +1816,7 @@ class VisualDensity extends Diagnosticable {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
{
return
false
;
}
...
...
packages/flutter/lib/src/material/time.dart
View file @
82262d88
...
...
@@ -112,7 +112,7 @@ class TimeOfDay {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
return
other
is
TimeOfDay
&&
other
.
hour
==
hour
&&
other
.
minute
==
minute
;
...
...
packages/flutter/lib/src/painting/_network_image_io.dart
View file @
82262d88
...
...
@@ -108,7 +108,7 @@ class NetworkImage extends image_provider.ImageProvider<image_provider.NetworkIm
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
NetworkImage
...
...
packages/flutter/lib/src/painting/_network_image_web.dart
View file @
82262d88
...
...
@@ -65,7 +65,7 @@ class NetworkImage extends image_provider.ImageProvider<image_provider.NetworkIm
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
{
return
false
;
}
...
...
packages/flutter/lib/src/painting/alignment.dart
View file @
82262d88
...
...
@@ -126,7 +126,7 @@ abstract class AlignmentGeometry {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
return
other
is
AlignmentGeometry
&&
other
.
_x
==
_x
&&
other
.
_start
==
_start
...
...
packages/flutter/lib/src/painting/beveled_rectangle_border.dart
View file @
82262d88
...
...
@@ -133,8 +133,8 @@ class BeveledRectangleBorder extends ShapeBorder {
}
@override
bool
operator
==(
dynamic
other
)
{
if
(
runtimeType
!=
other
.
runtimeType
)
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
BeveledRectangleBorder
&&
other
.
side
==
side
...
...
packages/flutter/lib/src/painting/border_radius.dart
View file @
82262d88
...
...
@@ -239,10 +239,10 @@ abstract class BorderRadiusGeometry {
}
@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
BorderRadiusGeometry
&&
other
.
_topLeft
==
_topLeft
...
...
packages/flutter/lib/src/painting/borders.dart
View file @
82262d88
...
...
@@ -252,10 +252,10 @@ class BorderSide {
}
@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
BorderSide
&&
other
.
color
==
color
...
...
@@ -610,10 +610,10 @@ class _CompoundBorder extends ShapeBorder {
}
@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
_CompoundBorder
&&
listEquals
<
ShapeBorder
>(
other
.
borders
,
borders
);
...
...
packages/flutter/lib/src/painting/box_border.dart
View file @
82262d88
...
...
@@ -527,10 +527,10 @@ class Border extends BoxBorder {
}
@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
Border
&&
other
.
top
==
top
...
...
@@ -831,10 +831,10 @@ class BorderDirectional extends BoxBorder {
}
@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
BorderDirectional
&&
other
.
top
==
top
...
...
packages/flutter/lib/src/painting/box_decoration.dart
View file @
82262d88
...
...
@@ -309,10 +309,10 @@ class BoxDecoration extends Decoration {
}
@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
BoxDecoration
&&
other
.
color
==
color
...
...
packages/flutter/lib/src/painting/box_shadow.dart
View file @
82262d88
...
...
@@ -113,10 +113,10 @@ class BoxShadow extends ui.Shadow {
}
@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
BoxShadow
&&
other
.
color
==
color
...
...
packages/flutter/lib/src/painting/circle_border.dart
View file @
82262d88
...
...
@@ -81,8 +81,8 @@ class CircleBorder extends ShapeBorder {
}
@override
bool
operator
==(
dynamic
other
)
{
if
(
runtimeType
!=
other
.
runtimeType
)
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
CircleBorder
&&
other
.
side
==
side
;
...
...
packages/flutter/lib/src/painting/colors.dart
View file @
82262d88
...
...
@@ -214,7 +214,7 @@ class HSVColor {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
return
other
is
HSVColor
...
...
@@ -398,7 +398,7 @@ class HSLColor {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
return
other
is
HSLColor
...
...
@@ -441,7 +441,7 @@ class ColorSwatch<T> extends Color {
Color
operator
[](
T
index
)
=>
_swatch
[
index
];
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
if
(
other
.
runtimeType
!=
runtimeType
)
...
...
packages/flutter/lib/src/painting/continuous_rectangle_border.dart
View file @
82262d88
...
...
@@ -148,8 +148,8 @@ class ContinuousRectangleBorder extends ShapeBorder {
}
@override
bool
operator
==(
dynamic
other
)
{
if
(
runtimeType
!=
other
.
runtimeType
)
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
ContinuousRectangleBorder
&&
other
.
side
==
side
...
...
packages/flutter/lib/src/painting/decoration_image.dart
View file @
82262d88
...
...
@@ -136,10 +136,10 @@ class DecorationImage {
}
@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
DecorationImage
&&
other
.
image
==
image
...
...
packages/flutter/lib/src/painting/edge_insets.dart
View file @
82262d88
...
...
@@ -279,7 +279,7 @@ abstract class EdgeInsetsGeometry {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
return
other
is
EdgeInsetsGeometry
&&
other
.
_left
==
_left
&&
other
.
_right
==
_right
...
...
packages/flutter/lib/src/painting/flutter_logo.dart
View file @
82262d88
...
...
@@ -206,7 +206,7 @@ class FlutterLogoDecoration extends Decoration {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
assert
(
debugAssertIsValid
());
if
(
identical
(
this
,
other
))
return
true
;
...
...
packages/flutter/lib/src/painting/gradient.dart
View file @
82262d88
...
...
@@ -493,10 +493,10 @@ class LinearGradient extends Gradient {
}
@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
LinearGradient
&&
other
.
begin
==
begin
...
...
@@ -753,10 +753,10 @@ class RadialGradient extends Gradient {
}
@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
RadialGradient
&&
other
.
center
==
center
...
...
@@ -999,10 +999,10 @@ class SweepGradient extends Gradient {
}
@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
SweepGradient
&&
other
.
center
==
center
...
...
packages/flutter/lib/src/painting/image_provider.dart
View file @
82262d88
...
...
@@ -91,7 +91,7 @@ class ImageConfiguration {
static
const
ImageConfiguration
empty
=
ImageConfiguration
();
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
ImageConfiguration
...
...
@@ -436,7 +436,7 @@ class AssetBundleImageKey {
final
double
scale
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
AssetBundleImageKey
...
...
@@ -654,7 +654,7 @@ class FileImage extends ImageProvider<FileImage> {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
FileImage
...
...
@@ -715,7 +715,7 @@ class MemoryImage extends ImageProvider<MemoryImage> {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
MemoryImage
...
...
@@ -852,7 +852,7 @@ class ExactAssetImage extends AssetBundleImageProvider {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
ExactAssetImage
...
...
packages/flutter/lib/src/painting/image_resolution.dart
View file @
82262d88
...
...
@@ -277,7 +277,7 @@ class AssetImage extends AssetBundleImageProvider {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
AssetImage
...
...
packages/flutter/lib/src/painting/image_stream.dart
View file @
82262d88
...
...
@@ -116,7 +116,7 @@ class ImageStreamListener {
int
get
hashCode
=>
hashValues
(
onImage
,
onChunk
,
onError
);
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
ImageStreamListener
...
...
packages/flutter/lib/src/painting/inline_span.dart
View file @
82262d88
...
...
@@ -84,11 +84,12 @@ class InlineSpanSemanticsInformation {
final
bool
requiresOwnNode
;
@override
bool
operator
==(
dynamic
other
)
{
if
(
other
is
!
InlineSpanSemanticsInformation
)
{
return
false
;
}
return
other
.
text
==
text
&&
other
.
semanticsLabel
==
semanticsLabel
&&
other
.
recognizer
==
recognizer
&&
other
.
isPlaceholder
==
isPlaceholder
;
bool
operator
==(
Object
other
)
{
return
other
is
InlineSpanSemanticsInformation
&&
other
.
text
==
text
&&
other
.
semanticsLabel
==
semanticsLabel
&&
other
.
recognizer
==
recognizer
&&
other
.
isPlaceholder
==
isPlaceholder
;
}
@override
...
...
@@ -354,7 +355,7 @@ abstract class InlineSpan extends DiagnosticableTree {
RenderComparison
compareTo
(
InlineSpan
other
);
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
if
(
other
.
runtimeType
!=
runtimeType
)
...
...
packages/flutter/lib/src/painting/rounded_rectangle_border.dart
View file @
82262d88
...
...
@@ -123,8 +123,8 @@ class RoundedRectangleBorder extends ShapeBorder {
}
@override
bool
operator
==(
dynamic
other
)
{
if
(
runtimeType
!=
other
.
runtimeType
)
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
RoundedRectangleBorder
&&
other
.
side
==
side
...
...
@@ -283,8 +283,8 @@ class _RoundedRectangleToCircleBorder extends ShapeBorder {
}
@override
bool
operator
==(
dynamic
other
)
{
if
(
runtimeType
!=
other
.
runtimeType
)
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
_RoundedRectangleToCircleBorder
&&
other
.
side
==
side
...
...
packages/flutter/lib/src/painting/shape_decoration.dart
View file @
82262d88
...
...
@@ -246,10 +246,10 @@ class ShapeDecoration extends Decoration {
}
@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
ShapeDecoration
&&
other
.
color
==
color
...
...
packages/flutter/lib/src/painting/stadium_border.dart
View file @
82262d88
...
...
@@ -110,8 +110,8 @@ class StadiumBorder extends ShapeBorder {
}
@override
bool
operator
==(
dynamic
other
)
{
if
(
runtimeType
!=
other
.
runtimeType
)
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
StadiumBorder
&&
other
.
side
==
side
;
...
...
@@ -257,8 +257,8 @@ class _StadiumToCircleBorder extends ShapeBorder {
}
@override
bool
operator
==(
dynamic
other
)
{
if
(
runtimeType
!=
other
.
runtimeType
)
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
_StadiumToCircleBorder
&&
other
.
side
==
side
...
...
@@ -399,8 +399,8 @@ class _StadiumToRoundedRectangleBorder extends ShapeBorder {
}
@override
bool
operator
==(
dynamic
other
)
{
if
(
runtimeType
!=
other
.
runtimeType
)
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
_StadiumToRoundedRectangleBorder
&&
other
.
side
==
side
...
...
packages/flutter/lib/src/painting/strut_style.dart
View file @
82262d88
...
...
@@ -541,7 +541,7 @@ class StrutStyle extends Diagnosticable {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
if
(
other
.
runtimeType
!=
runtimeType
)
...
...
packages/flutter/lib/src/painting/text_span.dart
View file @
82262d88
...
...
@@ -416,7 +416,7 @@ class TextSpan extends InlineSpan {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
if
(
other
.
runtimeType
!=
runtimeType
)
...
...
packages/flutter/lib/src/painting/text_style.dart
View file @
82262d88
...
...
@@ -1139,7 +1139,7 @@ class TextStyle extends Diagnosticable {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
if
(
other
.
runtimeType
!=
runtimeType
)
...
...
packages/flutter/lib/src/rendering/box.dart
View file @
82262d88
...
...
@@ -581,11 +581,11 @@ class BoxConstraints extends Constraints {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
assert
(
debugAssertIsValid
());
if
(
identical
(
this
,
other
))
return
true
;
if
(
runtimeType
!=
other
.
runtimeType
)
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
assert
(
other
is
BoxConstraints
&&
other
.
debugAssertIsValid
());
return
other
is
BoxConstraints
...
...
@@ -855,7 +855,7 @@ class _IntrinsicDimensionsCacheEntry {
final
double
argument
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
return
other
is
_IntrinsicDimensionsCacheEntry
&&
other
.
dimension
==
dimension
&&
other
.
argument
==
argument
;
...
...
packages/flutter/lib/src/rendering/sliver.dart
View file @
82262d88
...
...
@@ -466,7 +466,7 @@ class SliverConstraints extends Constraints {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
if
(
other
is
!
SliverConstraints
)
...
...
packages/flutter/lib/src/rendering/stack.dart
View file @
82262d88
...
...
@@ -151,7 +151,7 @@ class RelativeRect {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
return
other
is
RelativeRect
...
...
packages/flutter/lib/src/rendering/table_border.dart
View file @
82262d88
...
...
@@ -260,10 +260,10 @@ class TableBorder {
}
@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
TableBorder
&&
other
.
top
==
top
...
...
packages/flutter/lib/src/semantics/semantics.dart
View file @
82262d88
...
...
@@ -126,7 +126,7 @@ class CustomSemanticsAction {
int
get
hashCode
=>
ui
.
hashValues
(
label
,
hint
,
action
);
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
CustomSemanticsAction
...
...
@@ -421,7 +421,7 @@ class SemanticsData extends Diagnosticable {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
return
other
is
SemanticsData
&&
other
.
flags
==
flags
&&
other
.
actions
==
actions
...
...
@@ -559,7 +559,7 @@ class SemanticsHintOverrides extends DiagnosticableTree {
int
get
hashCode
=>
ui
.
hashValues
(
onTapHint
,
onLongPressHint
);
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
SemanticsHintOverrides
...
...
packages/flutter/lib/src/services/keyboard_key.dart
View file @
82262d88
...
...
@@ -167,7 +167,7 @@ class LogicalKeyboardKey extends KeyboardKey {
int
get
hashCode
=>
keyId
.
hashCode
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
{
return
false
;
}
...
...
@@ -2069,7 +2069,7 @@ class PhysicalKeyboardKey extends KeyboardKey {
int
get
hashCode
=>
usbHidUsage
.
hashCode
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
{
return
false
;
}
...
...
packages/flutter/lib/src/services/raw_keyboard.dart
View file @
82262d88
...
...
@@ -618,10 +618,12 @@ class _ModifierSidePair extends Object {
final
KeyboardSide
side
;
@override
bool
operator
==(
dynamic
other
)
{
return
runtimeType
==
other
.
runtimeType
&&
modifier
==
other
.
modifier
&&
side
==
other
.
side
;
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
_ModifierSidePair
&&
other
.
modifier
==
modifier
&&
other
.
side
==
side
;
}
@override
...
...
packages/flutter/lib/src/services/system_chrome.dart
View file @
82262d88
...
...
@@ -193,7 +193,7 @@ class SystemUiOverlayStyle {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
SystemUiOverlayStyle
...
...
packages/flutter/lib/src/services/text_editing.dart
View file @
82262d88
...
...
@@ -98,7 +98,7 @@ class TextSelection extends TextRange {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
return
other
is
TextSelection
...
...
packages/flutter/lib/src/services/text_input.dart
View file @
82262d88
...
...
@@ -189,7 +189,7 @@ class TextInputType {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
return
other
is
TextInputType
&&
other
.
index
==
index
&&
other
.
signed
==
signed
...
...
@@ -688,7 +688,7 @@ class TextEditingValue {
String
toString
()
=>
'
$runtimeType
(text:
\
u2524
$text
\
u251C, selection:
$selection
, composing:
$composing
)'
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
return
other
is
TextEditingValue
...
...
packages/flutter/lib/src/widgets/async.dart
View file @
82262d88
...
...
@@ -265,7 +265,7 @@ class AsyncSnapshot<T> {
String
toString
()
=>
'
$runtimeType
(
$connectionState
,
$data
,
$error
)'
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
return
other
is
AsyncSnapshot
<
T
>
...
...
packages/flutter/lib/src/widgets/framework.dart
View file @
82262d88
...
...
@@ -73,7 +73,7 @@ class ObjectKey extends LocalKey {
final
Object
value
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
ObjectKey
...
...
@@ -325,7 +325,7 @@ class GlobalObjectKey<T extends State<StatefulWidget>> extends GlobalKey<T> {
final
Object
value
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
GlobalObjectKey
<
T
>
...
...
@@ -453,7 +453,7 @@ abstract class Widget extends DiagnosticableTree {
@override
@nonVirtual
bool
operator
==(
dynamic
other
)
=>
super
==
other
;
bool
operator
==(
Object
other
)
=>
super
==
other
;
@override
@nonVirtual
...
...
packages/flutter/lib/src/widgets/icon_data.dart
View file @
82262d88
...
...
@@ -50,8 +50,8 @@ class IconData {
final
bool
matchTextDirection
;
@override
bool
operator
==(
dynamic
other
)
{
if
(
runtimeType
!=
other
.
runtimeType
)
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
IconData
&&
other
.
codePoint
==
codePoint
...
...
packages/flutter/lib/src/widgets/icon_theme_data.dart
View file @
82262d88
...
...
@@ -100,7 +100,7 @@ class IconThemeData extends Diagnosticable {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
IconThemeData
...
...
packages/flutter/lib/src/widgets/page_storage.dart
View file @
82262d88
...
...
@@ -47,7 +47,7 @@ class _StorageEntryIdentifier {
bool
get
isNotEmpty
=>
keys
.
isNotEmpty
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
_StorageEntryIdentifier
...
...
packages/flutter/lib/src/widgets/widget_inspector.dart
View file @
82262d88
...
...
@@ -2435,7 +2435,7 @@ class _TransformedRect {
final
Matrix4
transform
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
_TransformedRect
...
...
@@ -2467,7 +2467,7 @@ class _InspectorOverlayRenderState {
final
TextDirection
textDirection
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
_InspectorOverlayRenderState
...
...
packages/flutter/lib/src/widgets/widget_span.dart
View file @
82262d88
...
...
@@ -164,7 +164,7 @@ class WidgetSpan extends PlaceholderSpan {
}
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
return
true
;
if
(
other
.
runtimeType
!=
runtimeType
)
...
...
packages/flutter/test/services/fake_platform_views.dart
View file @
82262d88
...
...
@@ -387,8 +387,8 @@ class FakeAndroidPlatformView {
int
layoutDirection
;
@override
bool
operator
==(
dynamic
other
)
{
if
(
other
.
runtimeType
!=
FakeAndroidPlatformView
)
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
FakeAndroidPlatformView
&&
other
.
id
==
id
...
...
@@ -415,9 +415,7 @@ class FakeAndroidMotionEvent {
@override
bool
operator
==(
dynamic
other
)
{
if
(
other
is
!
FakeAndroidMotionEvent
)
return
false
;
bool
operator
==(
Object
other
)
{
return
other
is
FakeAndroidMotionEvent
&&
listEquals
<
int
>(
other
.
pointerIds
,
pointerIds
)
&&
other
.
action
==
action
...
...
@@ -441,8 +439,8 @@ class FakeUiKitView {
final
Uint8List
creationParams
;
@override
bool
operator
==(
dynamic
other
)
{
if
(
other
.
runtimeType
!=
FakeUiKitView
)
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
FakeUiKitView
&&
other
.
id
==
id
...
...
@@ -466,8 +464,8 @@ class FakeHtmlPlatformView {
final
String
type
;
@override
bool
operator
==(
dynamic
other
)
{
if
(
other
.
runtimeType
!=
FakeHtmlPlatformView
)
bool
operator
==(
Object
other
)
{
if
(
other
.
runtimeType
!=
runtimeType
)
return
false
;
return
other
is
FakeHtmlPlatformView
&&
other
.
id
==
id
...
...
packages/flutter/test/widgets/key_test.dart
View file @
82262d88
...
...
@@ -12,7 +12,7 @@ class TestValueKey<T> extends ValueKey<T> {
class
NotEquals
{
const
NotEquals
();
@override
bool
operator
==(
dynamic
other
)
=>
false
;
bool
operator
==(
Object
other
)
=>
false
;
@override
int
get
hashCode
=>
0
;
}
...
...
packages/flutter_driver/lib/src/driver/driver.dart
View file @
82262d88
...
...
@@ -751,7 +751,7 @@ class DriverOffset {
String
toString
()
=>
'
$runtimeType
(
$dx
,
$dy
)'
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
return
other
is
DriverOffset
&&
other
.
dx
==
dx
&&
other
.
dy
==
dy
;
...
...
packages/flutter_test/test/matchers_test.dart
View file @
82262d88
...
...
@@ -709,7 +709,7 @@ class _CustomColor extends Color {
bool
isEqual
;
@override
bool
operator
==(
dynamic
other
)
=>
isEqual
??
super
==
other
;
bool
operator
==(
Object
other
)
=>
isEqual
??
super
==
other
;
@override
int
get
hashCode
=>
hashValues
(
super
.
hashCode
,
isEqual
);
...
...
packages/flutter_tools/lib/src/asset.dart
View file @
82262d88
...
...
@@ -283,7 +283,7 @@ class _Asset {
String
toString
()
=>
'asset:
$entryUri
'
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
other
,
this
))
{
return
true
;
}
...
...
packages/flutter_tools/lib/src/base/fingerprint.dart
View file @
82262d88
...
...
@@ -140,7 +140,7 @@ class Fingerprint {
});
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
other
,
this
))
{
return
true
;
}
...
...
packages/flutter_tools/lib/src/base/version.dart
View file @
82262d88
...
...
@@ -84,11 +84,11 @@ class Version implements Comparable<Version> {
/// Two [Version]s are equal if their version numbers are. The version text
/// is ignored.
@override
bool
operator
==(
dynamic
other
)
{
if
(
other
is
!
Version
)
{
return
false
;
}
return
major
==
other
.
major
&&
minor
==
other
.
minor
&&
patch
==
other
.
patch
;
bool
operator
==(
Object
other
)
{
return
other
is
Version
&&
other
.
major
==
major
&&
other
.
minor
==
minor
&&
other
.
patch
==
patch
;
}
@override
...
...
packages/flutter_tools/lib/src/device.dart
View file @
82262d88
...
...
@@ -440,14 +440,12 @@ abstract class Device {
int
get
hashCode
=>
id
.
hashCode
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
{
return
true
;
}
if
(
other
is
!
Device
)
{
return
false
;
}
return
id
==
other
.
id
;
return
other
is
Device
&&
other
.
id
==
id
;
}
@override
...
...
packages/flutter_tools/lib/src/emulator.dart
View file @
82262d88
...
...
@@ -228,14 +228,12 @@ abstract class Emulator {
int
get
hashCode
=>
id
.
hashCode
;
@override
bool
operator
==(
dynamic
other
)
{
bool
operator
==(
Object
other
)
{
if
(
identical
(
this
,
other
))
{
return
true
;
}
if
(
other
is
!
Emulator
)
{
return
false
;
}
return
id
==
other
.
id
;
return
other
is
Emulator
&&
other
.
id
==
id
;
}
Future
<
void
>
launch
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment