next property

SlotTimeUnit? get next

Returns the next SlotTimeUnit or null if this is the last SlotTimeUnit.

Implementation

SlotTimeUnit? get next => index + 1 < SlotTimeUnit.values.length ? SlotTimeUnit.values[index + 1] : null;