getById method

CurlModel? getById(
  1. String id
)

Implementation

CurlModel? getById(String id) {
  return items.firstWhereOrNull((CurlModel item) => item.id == id);
}