operator * method Null safety

num? operator *(
  1. num other
)

Multiplication operator.

Implementation

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