getAvailableIcons method

  1. @override
Future<List<String>> getAvailableIcons()
override

Gets a list of available alternate icon names.

Implementation

@override
Future<List<String>> getAvailableIcons() async {
  try {
    final icons = await methodChannel.invokeMethod<List<dynamic>>('getAvailableIcons');
    return icons?.cast<String>() ?? [];
  } on PlatformException {
    return [];
  }
}