TimeDistance class Core

Time distance representation based on meters and seconds.

Constructors

TimeDistance({int unrestrictedTimeS = 0, int restrictedTimeS = 0, int unrestrictedDistanceM = 0, int restrictedDistanceM = 0, double ndBeginEndRatio = -1.0})
Constructor with unrestricted and restricted times and distances
TimeDistance.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
hasRestrictedBeginEndDifferentiation bool
Check if it has different begin/end. Returns true if it has different begin/end, false otherwise
no setter
isEmpty bool
Check if empty. Returns true if empty, false otherwise
no setter
isNotEmpty bool
Check if not empty. Returns true if not empty, false otherwise
no setter
ndBeginEndRatio double
Restricted begin/end ratio.
getter/setter pair
restrictedDistanceAtBegin int
Restricted distance at begin
no setter
restrictedDistanceAtEnd int
Restricted distance at end
no setter
restrictedDistanceM int
Restricted distance in meters
getter/setter pair
restrictedTimeAtBegin int
Restricted time at begin
no setter
restrictedTimeAtEnd int
Restricted time at begin
no setter
restrictedTimeS int
Restricted time in seconds
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalDistanceM int
Total distance in meters
no setter
totalTimeS int
Total time in seconds
no setter
unrestrictedDistanceM int
Unrestricted distance in meters
getter/setter pair
unrestrictedTimeS int
Unrestricted time in seconds
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator +(TimeDistance other) TimeDistance
operator ==(covariant TimeDistance other) bool
The equality operator.
override