clear method

void clear()

Clears the shared state and notifies all displays.

Sets the state to null and propagates this change to all other Flutter engines.

Implementation

void clear() {
  _state = null;
  debugPrint('[SharedState] Clearing state for $_type');
  notifyListeners();
  SharedStateManager.instance.clearState(_type);
}