getMediaSetting method
Implementation
@override
Future<bool?> getMediaSetting(int networkType, String type) async {
bool? val = false;
try {
val = await mirrorFlyMethodChannel.invokeMethod<bool?>(
'getMediaSetting', {"NetworkType": networkType, "type": type});
return val;
} on PlatformException catch (e) {
debugPrint("Platform Exception ===> $e");
rethrow;
} on Exception catch (error) {
debugPrint("Exception ==> $error");
rethrow;
}
}