clearState method

  1. @override
Future<void> clearState(
  1. String type
)
override

Clears the shared state for a specific type.

Parameters:

  • type: The identifier for the state type to clear

This operation cannot be undone. After clearing, getState will return null for the specified type until new state is set.

Implementation

@override
Future<void> clearState(String type) async {
  await methodChannel.invokeMethod('clearState', {'type': type});
}