operator - method Null safety

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

Subtraction operator.

Implementation

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