operator / method Null safety

double? operator /(
  1. num other
)

Division operator.

Implementation

double? operator /(num other) {
  if (value != null) {
    return value! / other;
  }
}