safeMultiply method

double safeMultiply({
  1. num? other,
})

Returns this number multiplied safely by other.

Implementation

double safeMultiply({num? other}) {
  if (this == null || other == null) return 0.0;
  return this! * other;
}