HoraMinMax class
Utility class for min/max operations on Hora.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
clamp(
Hora value, Hora min, Hora max) → Hora - Clamps a date to be within a range.
-
max(
Iterable< Hora> dates) → Hora - Gets the maximum from a list of dates.
-
max2(
Hora a, Hora b) → Hora - Gets the maximum of two dates.
-
maxOrNull(
Iterable< Hora> dates) → Hora? - Gets the maximum from a list, or null if empty.
-
min(
Iterable< Hora> dates) → Hora - Gets the minimum from a list of dates.
-
min2(
Hora a, Hora b) → Hora - Gets the minimum of two dates.
-
minMax(
Iterable< Hora> dates) → MinMaxResult - Gets both min and max from a list.
-
minMaxOrNull(
Iterable< Hora> dates) → MinMaxResult? - Gets both min and max, or null if empty.
-
minOrNull(
Iterable< Hora> dates) → Hora? - Gets the minimum from a list, or null if empty.