update method

  1. @override
void update({
  1. required AppStreamElement<T> element,
})
override

Updates a single record in the store

The data is handdled as per the AppStreamElement passed

Implementation

@override
void update({required AppStreamElement<T> element}) {
  switch (element.operation) {
    case Operation.Add:
    case Operation.Update:
      _add(element.item);
      break;
    case Operation.Delete:
      _delete(element.item);
      break;
    default:
      break;
  }
  super.update(element: element);
}