stopBroadcast method

  1. @override
Future<void> stopBroadcast()
override

Stops the ongoing broadcast.

Throws an Exception if stopping the broadcast fails.

Implementation

@override
Future<void> stopBroadcast() async {
  try {
    await methodChannel.invokeMethod<void>('stopBroadcast');
  } catch (e) {
    throw Exception("$e [Stop Broadcast]");
  }
}