W3cubDocs

/Dart 2

isNegative property

bool isNegative

Returns 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 Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-core/Duration/isNegative.html