Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:core
  3. Duration
  4. operator ~/ method
operator ~/
description

operator ~/ method

Durationoperator ~/(
  1. intquotient
)

Divides this Duration by the givenquotient and returns the truncatedresult as a new Duration object.

Thequotient must not be0.

Implementation

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);}
  1. Dart
  2. dart:core
  3. Duration
  4. operator ~/ method
Duration class

[8]ページ先頭

©2009-2025 Movatter.jp