operator & method
T
operator &(
- dynamic other
Implementation
T operator &(dynamic other) {
if (other is AbstractInt) {
return valueOf(value & other.value);
} else if (other is int) {
return valueOf(value & other);
} else if (other is BigInt) {
return valueOf((BigInt.from(value) & other).toInt());
} else if (other is Decimal) {
return valueOf((BigInt.from(value) & other.toBigInt()).toInt());
} else {
throw UnsupportedError('not support argument: ${other.runtimeType}');
}
}