getState method
Retrieves the shared state for a specific type.
Parameters:
type: The identifier for the state type to retrieve
Returns a Future that completes with the state data as a Map, or null if no state exists for the given type.
Implementation
@override
Future<Map<String, dynamic>?> getState(String type) async {
final result = await methodChannel.invokeMapMethod<String, dynamic>(
'getState',
{'type': type},
);
return result;
}