removeModel method

Future<void> removeModel(
  1. String modelId
)

Implementation

Future<void> removeModel(String modelId) async {
  dynamic model = _all.remove(modelId);

  if (model != null) {
    await _removeFromIndex(model);
  }

  await Database.removeModel(getId(), modelId);

  await change(CollectionChangeType.delete, model);
}