getNameByIcon method Null safety

String? getNameByIcon(
  1. IconData icon
)

Get name for the given icon data

Implementation

static String? getNameByIcon(IconData icon) => _metadata.entries.firstWhereOrNull((e) => e.value == icon)?.key;