multiply<E extends num> method
E
multiply<E extends num>(
- E other
Multiplies this number by other
.
This does not set the value for this EmpireNullableIntProperty.
The result is an int, as described by int.*,
if both this number and other
are integers,
otherwise the result is a double.
If the underlying value is null
throws an EmpirePropertyNullValueException
.
Implementation
E multiply<E extends num>(E other) {
return isNotNull
? (_value! * other) as E
: throw EmpirePropertyNullValueException(
StackTrace.current, propertyName, runtimeType);
}