Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:core
  3. Duration
  4. operator unary- method
operator unary-
description

operator unary- method

Durationoperator unary-()

Creates a newDuration with the opposite direction of thisDuration.

The returnedDuration has the same length as this one, but will have theopposite sign (as reported byisNegative) as this one where possible.

Implementation

// Using subtraction helps dart2js avoid negative zeros.Duration operator -() => Duration._microseconds(0 - _duration);
  1. Dart
  2. dart:core
  3. Duration
  4. operator unary- method
Duration class

[8]ページ先頭

©2009-2025 Movatter.jp