updateState method

Future<void> updateState(
  1. String type,
  2. Map<String, dynamic>? state
)

Updates the shared state for a specific type across displays.

Parameters:

  • type: The identifier for the state type to update
  • state: A map containing the new state data. Can be null to clear the state.

Platform implementations should ensure this state is accessible across all active displays.

Implementation

Future<void> updateState(String type, Map<String, dynamic>? state) {
  throw UnimplementedError('updateState() has not been implemented.');
}