Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions lib/src/ipaddr_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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