getMediaSetting method

  1. @override
Future<bool?> getMediaSetting(
  1. int networkType,
  2. String type
)
override

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;
  }
}