operator + method
Addition operator.
Implementation
@override
IPv6Address operator +(dynamic other) {
if (other is int) {
return IPv6Address.fromInt(_ip + BigInt.from(other));
} else if (other is BigInt) {
return IPv6Address.fromInt(_ip + other);
} else {
throw ValueError('Other is int or BigInt only');
}
}