operator * method
Multiplies this integer by other
.
If the other
number is double
, the value is truncated after
multiplication
Returns u4
Implementation
@override
u4 operator *(dynamic other) {
if (other is integer) {
return u4(value * other.value);
} else if (other is int) {
return u4(value * other);
} else if (other is double) {
return u4((value * other).truncate());
} else {
throw Exception('Invalid type for operand: ${other.runtimeType}');
}
}