restoreBackup method

  1. @override
Future<void> restoreBackup({
  1. required String backupPath,
})
override

This method is used to restore the backup.

Implementation

@override
Future<void> restoreBackup({required String backupPath}) async {
  try {
    await mirrorFlyMethodChannel
        .invokeMethod<bool>('restoreBackup', {'backupPath': backupPath});
  } on PlatformException catch (e) {
    LogMessage.d("restoreBackup Platform Exception =", " $e");
  } on Exception catch (e) {
    LogMessage.d("restoreBackup Exception ", " $e");
  }
}