NumArithmeticX<T extends num> extension

on
  • T

Methods

minus(T? val) → T?

Available on T, provided by the NumArithmeticX extension

Minus val if if it not null else returns this
minusOrNull(T? val) → T?

Available on T, provided by the NumArithmeticX extension

returns null if val is null else returns this - val
plus(T? val) → T?

Available on T, provided by the NumArithmeticX extension

Adds val if if it not null else returns this
plusOrNull(T? val) → T?

Available on T, provided by the NumArithmeticX extension

returns null if val is null else returns this + val