iOSFileExist method

  1. @override
Future<bool?> iOSFileExist(
  1. String filePath
)
override

Implementation

@override
Future<bool?> iOSFileExist(String filePath) async {
  bool? response;
  try {
    response = await mirrorFlyMethodChannel
        .invokeMethod<bool>('iOSFileExist', {"file_path": filePath});
    debugPrint("iOSFileExist Response ==> $response");
    return response;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}