getCharmById method

Id getCharmById(
  1. String id
)

Implementation

Id getCharmById(String id) => charms.singleWhere((element) => !isNullOrEmpty(element.id) && element.id! == id);