setAlternateIconName method

  1. @override
Future<void> setAlternateIconName(
  1. String? iconName, {
  2. bool showAlert = true,
})
override

Sets the app icon to iconName, or restores default icon if iconName is null or empty.

Implementation

@override
Future<void> setAlternateIconName(
  String? iconName, {
  bool showAlert = true,
}) async {
  await methodChannel.invokeMethod<void>('setAlternateIconName', <String, dynamic>{
    'iconName': iconName,
    'showAlert': showAlert,
  });
}