operator ~/ method

int? operator ~/(
  1. num other
)

Truncating division operator.

If either operand is a double then the result of the truncating division a ~/ b is equivalent to (a / b).truncate().toInt().

If both operands are ints then a ~/ b performs the truncating integer division.

Implementation

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