dart / 2 / dart-core / duration / isnegative.html

isNegative property

bool isNegative

Whether this Duration is negative.

A negative Duration represents the difference from a later time to an earlier time.

Implementation

bool get isNegative => _duration < 0;

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-core/Duration/isNegative.html