searchIcon method

List searchIcon({
  1. required String query,
})

this is the initialize function loads all the fonts and generates random colors place it in the main

Implementation

List searchIcon({required String query}) {
  List searchResults = flutterIconsData
      .where((element) => element['icon_name'].toString().contains(query))
      .toList();

  return searchResults;
}