Commit 82262d88 authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by Flutter GitHub Bot

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

parent 23ce192a
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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;
......
......@@ -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>
......
......@@ -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
......
......@@ -62,7 +62,7 @@ class Velocity {
}
@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return other is Velocity
&& other.pixelsPerSecond == pixelsPerSecond;
}
......
......@@ -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)
......
......@@ -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)
......
......@@ -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)
......
......@@ -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
......
......@@ -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)
......
......@@ -2180,7 +2180,7 @@ class _ChipRenderTheme {
final bool canTapBody;
@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
......
......@@ -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)
......
......@@ -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)
......
......@@ -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;
}
......
......@@ -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>
......
......@@ -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
......
......@@ -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)
......
......@@ -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;
}
......
......@@ -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
......
......@@ -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));
......
......@@ -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
......
......@@ -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)
......
......@@ -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)
......
......@@ -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)
......
......@@ -1816,7 +1816,7 @@ class VisualDensity extends Diagnosticable {
}
@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (other.runtimeType != runtimeType) {
return false;
}
......
......@@ -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;
......
......@@ -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
......
......@@ -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;
}
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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);
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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;
......
......@@ -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)
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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;
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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)
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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)
......
......@@ -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)
......
......@@ -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)
......
......@@ -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;
......
......@@ -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)
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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;
}
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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>
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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)
......
......@@ -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
......
......@@ -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;
}
......
......@@ -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;
......
......@@ -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);
......
......@@ -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;
}
......
......@@ -140,7 +140,7 @@ class Fingerprint {
});
@override
bool operator==(dynamic other) {
bool operator==(Object other) {
if (identical(other, this)) {
return true;
}
......
......@@ -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
......
......@@ -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
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment