findByName static method

dynamic findByName(
  1. String? name
)

Implementation

static findByName(String? name) {
  return ALL.singleWhere(
    (item) => item.name == name,
  );
}