getThemeById method

Id getThemeById(
  1. String id
)

Implementation

Id getThemeById(String id) => themes.singleWhere((element) => !isNullOrEmpty(element.id) && element.id! == id);