getBackups method

Future<Map?> getBackups()

This method gets a map of all stored backups in the "backups" folder under your app files represented as the packageName as key and the apkPath as value.

Implementation

Future<Map?> getBackups() async {
  try {
    Map? backups = await _channel.invokeMethod("getBackups");
    return backups;
  } on PlatformException catch (e) {
    throwError(e, "sharing an app");
    return {};
  }
}