stopDiscovery method
Stops the discovery process. strongly recommended to call this method when the application close the show cast devices dialog for reduce battery consumption.
Implementation
@override
Future<void> stopDiscovery() async {
_channel.invokeMethod('stopDiscovery');
return;
}