stopStream method

Future<void> stopStream()

Stop the current stream generation

Implementation

Future<void> stopStream() async {
  try {
    await _channel.invokeMethod('stopStream', {'wrapperId': _wrapperId});
  } on PlatformException catch (e) {
    throw Exception('Failed to stop stream: ${e.message}');
  }
}