withID method

List<E> withID(
  1. String id
)

Filter elements with id.

Implementation

List<E> withID(String id) => where((e) => e.id == id).toList();