operator + method Null safety

Rx<double?>? operator +(
  1. num other
)

Addition operator.

Implementation

Rx<double?>? operator +(num other) {
  if (value != null) {
    value = value! + other;
    return this;
  }
}