previous property

SlotTimeUnit? get previous

Returns the previous SlotTimeUnit or null if this is the first SlotTimeUnit.

Implementation

SlotTimeUnit? get previous => index - 1 >= 0 ? SlotTimeUnit.values[index - 1] : null;