getCurrentIcon method

  1. @override
Future<String?> getCurrentIcon()
override

Gets the current app icon name.

Returns null if the default icon is being used.

Implementation

@override
Future<String?> getCurrentIcon() async {
  try {
    final iconName = await methodChannel.invokeMethod<String?>('getCurrentIcon');
    return iconName;
  } on PlatformException {
    return null;
  }
}