getState method
Implementation
@override
Future<AudioMonitorState> getState() async {
try {
final state = await methodChannel.invokeMapMethod<Object?, Object?>(
'getState',
);
if (state == null) {
return const AudioMonitorState.idle();
}
return AudioMonitorState.fromMap(state);
} on PlatformException catch (exception) {
throw _mapPlatformException(exception);
}
}