setActiveSlot method

Future<void> setActiveSlot(
  1. String id
)

Marks id as the active slot. Throws ArgumentError (without changing activeSlotId) if id doesn't exist — never actives into a slot that was never created (or was already deleted).

Implementation

Future<void> setActiveSlot(String id) {
  _validateExists(id);
  return StorageService.to.setString(_activeSlotStorageKey, id);
}