canCreateSlot property
bool
get
canCreateSlot
true if createSlot can be called right now without throwing —
always true when maxSlots is null (unlimited). A UI checks this
to decide whether to disable a "Create slot" button, rather than
re-deriving the same maxSlots == null || ... null-check itself.
Implementation
bool get canCreateSlot => maxSlots == null || _slotList.length < maxSlots!;