stopStream method

  1. @override
Future<String?> stopStream()
override

Implementation

@override
Future<String?> stopStream() async {
  try {
    await methodChannel.invokeMethod<String?>('stopStreaming');
  } on PlatformException catch (e) {
    debugPrint("Error: ${e.code}, ${e.message}");
    return e.message;
  }
  return null;
}