clearInlineSlot method

void clearInlineSlot(
  1. String slotKey
)

Clears the inline slot at slotKey, if any. No-op if nothing is active there.

Implementation

void clearInlineSlot(String slotKey) {
  final removedConfig = _slotConfigs.remove(slotKey);
  final removedPayload = _slotPayloads.remove(slotKey);
  if (removedConfig == null && removedPayload == null) return;
  notifyListeners();
}