getMapById method

Id getMapById(
  1. String id
)

Implementation

Id getMapById(String id) => maps.singleWhere((element) => !isNullOrEmpty(element.id) && element.id! == id);