add<E extends num> method

double add<E extends num>(
  1. E other
)

Adds other to this number.

This does not set the value for this EmpireNullableDoubleProperty.

The result is an double, as described by double.+. If the underlying value is null throws an EmpirePropertyNullValueException.

Implementation

double add<E extends num>(E other) {
  return isNotNull
      ? _value! + other
      : throw EmpirePropertyNullValueException(
          StackTrace.current, propertyName, runtimeType);
}