deleteAccount method

  1. @override
Future deleteAccount(
  1. String reason,
  2. String? feedback
)
override

Implementation

@override
Future<dynamic> deleteAccount(String reason, String? feedback) async {
  dynamic response;
  try {
    response = await mirrorFlyMethodChannel.invokeMethod('delete_account',
        {"delete_reason": reason, "delete_feedback": feedback});
    return response;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}