SlotTimeUnit enum

A time unit as defined in lb_planner_plugin

Inheritance
Available extensions

Values

$1 → const SlotTimeUnit

08:00

const SlotTimeUnit(TimeOfDay(hour: 8, minute: 0))
$2 → const SlotTimeUnit

08:50

const SlotTimeUnit(TimeOfDay(hour: 8, minute: 50))
$3 → const SlotTimeUnit

09:50

const SlotTimeUnit(TimeOfDay(hour: 9, minute: 50))
$4 → const SlotTimeUnit

10:40

const SlotTimeUnit(TimeOfDay(hour: 10, minute: 40))
$5 → const SlotTimeUnit

11:30

const SlotTimeUnit(TimeOfDay(hour: 11, minute: 30))
$6 → const SlotTimeUnit

12:30

const SlotTimeUnit(TimeOfDay(hour: 12, minute: 30))
$7 → const SlotTimeUnit

13:20

const SlotTimeUnit(TimeOfDay(hour: 13, minute: 20))
$8 → const SlotTimeUnit

14:10

const SlotTimeUnit(TimeOfDay(hour: 14, minute: 10))
$9 → const SlotTimeUnit

15:10

const SlotTimeUnit(TimeOfDay(hour: 15, minute: 10))
$10 → const SlotTimeUnit

16:00

const SlotTimeUnit(TimeOfDay(hour: 16, minute: 0))
$11 → const SlotTimeUnit

17:00

const SlotTimeUnit(TimeOfDay(hour: 17, minute: 0))
$12 → const SlotTimeUnit

17:45

const SlotTimeUnit(TimeOfDay(hour: 17, minute: 45))
$13 → const SlotTimeUnit

18:45

const SlotTimeUnit(TimeOfDay(hour: 18, minute: 45))
$14 → const SlotTimeUnit

19:30

const SlotTimeUnit(TimeOfDay(hour: 19, minute: 30))
$15 → const SlotTimeUnit

20:15

const SlotTimeUnit(TimeOfDay(hour: 20, minute: 15))
$16 → const SlotTimeUnit

21:00

const SlotTimeUnit(TimeOfDay(hour: 21, minute: 0))

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeOfDay TimeOfDay
The human-readable representation of this time unit.
final

Methods

duration(SlotTimeUnit other) Duration
Returns the absolute duration between this SlotTimeUnit and other in minutes.
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 +(int other) SlotTimeUnit
Adds other to this SlotTimeUnit and returns the resulting SlotTimeUnit.
operator -(int other) SlotTimeUnit
Subtracts other from this SlotTimeUnit and returns the resulting SlotTimeUnit.
operator <(SlotTimeUnit other) bool
Returns true if this SlotTimeUnit is earlier than other.
operator <=(SlotTimeUnit other) bool
Returns true if this SlotTimeUnit is earlier than or equal to other.
operator ==(Object other) bool
The equality operator.
inherited
operator >(SlotTimeUnit other) bool
Returns true if this SlotTimeUnit is later than other.
operator >=(SlotTimeUnit other) bool
Returns true if this SlotTimeUnit is later than or equal to other.

Constants

values → const List<SlotTimeUnit>
A constant List of the values in this enum, in order of their declaration.