operator ~/ method Null safety

int? operator ~/(
  1. num other
)

Truncating division operator.

The result of the truncating division a ~/ b is equivalent to (a / b).truncate().

Implementation

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