deleteAll method

Future<void> deleteAll()

Delete all objects from realm.

Implementation

Future<void> deleteAll() async {
  assert(_partition.length != 0);

  Map<String, dynamic> values = {
    'identity': _syncUser.identity,
    'appId': _appId,
    'partition': _partition
  };
  Map<dynamic, dynamic> map =
      await _channel.invokeMethod(Action.deleteAll.name, values);

  if (map["error"] != null) {
    throw Exception("deleteall finished with exception ${map["error"]}");
  }

  return;
}