operator + method Null safety

RxnInt operator +(
  1. int other
)

Addition operator.

Implementation

RxnInt operator +(int other) {
  if (value != null) {
    value = value! + other;
  }
  return this;
}