getSprayById method

Id getSprayById(
  1. String id
)

Implementation

Id getSprayById(String id) => sprays.singleWhere((element) => !isNullOrEmpty(element.id) && element.id! == id);