For testing a class that extends a class that has some operators
- Inheritance
- Object
- Duration
- SpecializedDuration
Constructors
Properties
- hashCode → int
-
read-only, inherited
- inDays → int
-
Returns the number of whole days spanned by this Duration.
read-only, inherited - inHours → int
-
Returns the number of whole hours spanned by this Duration.…
read-only, inherited - inMicroseconds → int
-
Returns number of whole microseconds spanned by this Duration.
read-only, inherited - inMilliseconds → int
-
Returns number of whole milliseconds spanned by this Duration.…
read-only, inherited - inMinutes → int
-
Returns the number of whole minutes spanned by this Duration.…
read-only, inherited - inSeconds → int
-
Returns the number of whole seconds spanned by this Duration.…
read-only, inherited - isNegative → bool
-
Returns whether this
Duration
is negative.…read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator *(
num factor) → Duration -
Multiplies this Duration by the given
factor
and returns the result as a new Duration object.…inherited -
operator +(
Duration other) → Duration -
Adds this Duration and
other
and returns the sum as a new Duration object.inherited -
operator -(
Duration other) → Duration -
Subtracts
other
from this Duration and returns the difference as a new Duration object.inherited -
operator <(
Duration other) → bool -
Returns
true
if the value of this Duration is less than the value ofother
.inherited -
operator <=(
Duration other) → bool -
Returns
true
if the value of this Duration is less than or equal to the value ofother
.inherited -
operator ==(
other) → bool -
Returns
true
if this Duration is the same object asother
.inherited -
operator >(
Duration other) → bool -
Returns
true
if the value of this Duration is greater than the value ofother
.inherited -
operator >=(
Duration other) → bool -
Returns
true
if the value of this Duration is greater than or equal to the value ofother
.inherited -
operator unary-(
) → Duration -
Returns a new
Duration
representing thisDuration
negated.…inherited -
operator ~/(
int quotient) → Duration -
Divides this Duration by the given
quotient
and returns the truncated result as a new Duration object.…inherited
Methods
-
abs(
) → Duration -
Returns a new
Duration
representing the absolute value of thisDuration
.…inherited -
compareTo(
Duration other) → int -
Compares this Duration to
other
, returning zero if the values are equal.…inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.…
inherited -
toString(
) → String -
Returns a string representation of this
Duration
.…inherited