startBackup method

  1. @override
Future<void> startBackup(
  1. bool enableEncryption
)
override

This method is used to start the backup.

Implementation

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