update method

List<T> update(
  1. T model
)

Implementation

List<T> update(T model) => [
      for (var it in this)
        if (it.id == model.id) model else it
    ];