CompareTo class
Compares the duration to another duration and returns the result of the comparison. Returns 0 if the durations are equal, a negative number if the duration is less than the other duration, and a positive number if the duration is greater than the other duration.
var foo = duration(0, 0, 0, 2, 0); //seconds
var bar = duration(0, 0, 0, 1, 0); //seconds
var baz = foo.compareTo(bar);
- Inheritance
-
- Object
- NativeMethodDefinition<
Duration, int> - CompareTo
Constructors
Properties
- arity → int
-
finalinherited
-
function
→ NativeMethodFunction<
Duration, int> -
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodName → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- targetType → NativeMethodTarget
-
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited