removeModelById method

Future<bool> removeModelById(
  1. String id
)

Implementation

Future<bool> removeModelById(String id) async {
  if (!await CacheHandler.removeCacheObjectFromList(getCacheId(), id, "id")) {
    return false;
  }
  if (_models.containsKey(id)) {
    _models.remove(id);
  }
  return true;
}