diff --git a/lib/src/ipaddr_base.dart b/lib/src/ipaddr_base.dart index bcf7511..98d9c56 100644 --- a/lib/src/ipaddr_base.dart +++ b/lib/src/ipaddr_base.dart @@ -30,22 +30,22 @@ class _BaseAddress extends _BaseIPAddress { @override int get hashCode => _ip.hashCode; - bool operator >(other) => + bool operator >(Object other) => other is _BaseAddress && runtimeType == other.runtimeType && _ip > other._ip; - bool operator <(other) => + bool operator <(Object other) => other is _BaseAddress && runtimeType == other.runtimeType && _ip < other._ip; - bool operator >=(other) => + bool operator >=(Object other) => other is _BaseAddress && runtimeType == other.runtimeType && _ip >= other._ip; - bool operator <=(other) => + bool operator <=(Object other) => other is _BaseAddress && runtimeType == other.runtimeType && _ip <= other._ip; @@ -78,10 +78,10 @@ abstract class _Address { String toString(); /// Addition operator. - _BaseAddress operator +(other); + _BaseAddress operator +(Object other); /// Subtraction operator. - _BaseAddress operator -(other); + _BaseAddress operator -(Object other); } abstract class _Network { @@ -107,7 +107,7 @@ abstract class _Network { int get prefixlen; /// The total number of addresses in the network. - dynamic get numAddresses; + Object get numAddresses; /// A string resresentation of the netwrok, with the mask in prefix length. String get withPrefixlen; diff --git a/pubspec.yaml b/pubspec.yaml index fedd8c6..0456607 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,5 +7,5 @@ environment: sdk: '>=2.12.0 <4.0.0' dev_dependencies: - lints: ^2.1.1 + lints: ^6.1.0 test: ^1.16.5