метод operator ~/
- int quotient
Делит этот объект Duration на заданное quotient и возвращает результат с отброшенной дробной частью в виде нового объекта Duration.
Выбрасывает IntegerDivisionByZeroException, если quotient равно 0.
Реализация
Duration operator ~/(int quotient) {
// By doing the check here instead of relying on "~/" below we get the
// exception even with dart2js.
if (quotient == 0) throw IntegerDivisionByZeroException();
return Duration._microseconds(_duration ~/ quotient);
}
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-core/Duration/operator_truncate_divide.html