From 233841026129d5df2e5befdc0c9dd754415d024c Mon Sep 17 00:00:00 2001 From: dreamnice Date: Thu, 14 May 2020 01:14:46 +0800 Subject: [PATCH] fix the wrong type error of == fuction --- .../lib/src/chart/cartesian/axis/spec/ordinal_axis_spec.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts_common/lib/src/chart/cartesian/axis/spec/ordinal_axis_spec.dart b/charts_common/lib/src/chart/cartesian/axis/spec/ordinal_axis_spec.dart index c9dca7e09..dd56a5dc2 100644 --- a/charts_common/lib/src/chart/cartesian/axis/spec/ordinal_axis_spec.dart +++ b/charts_common/lib/src/chart/cartesian/axis/spec/ordinal_axis_spec.dart @@ -177,7 +177,7 @@ class FixedPixelSpaceOrdinalScaleSpec implements OrdinalScaleSpec { } @override - bool operator ==(Object other) => other is SimpleOrdinalScaleSpec; + bool operator ==(Object other) => other is FixedPixelSpaceOrdinalScaleSpec; @override int get hashCode => 37; @@ -198,7 +198,7 @@ class FixedPixelOrdinalScaleSpec implements OrdinalScaleSpec { } @override - bool operator ==(Object other) => other is SimpleOrdinalScaleSpec; + bool operator ==(Object other) => other is FixedPixelOrdinalScaleSpec; @override int get hashCode => 37;