MethodChannelDynamicIconPlus class

An implementation of DynamicIconPlusPlatform that uses method channels.

Inheritance

Properties

hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
The method channel used to interact with the native platform.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportsAlternateIcons → Future<bool>
Checks if the current platform supports dynamic icon switching.
no setteroverride

Methods

getAlternateIconName() → Future<String?>
Gets the currently active alternate icon name, or null if the default icon is active.
override
getAvailableIcons() → Future<List<String>>
Gets all registered alternate icon names available in the app.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetToDefault({bool showAlert = true}) → Future<void>
Restores the default launcher icon.
override
setAlternateIconName(String? iconName, {bool showAlert = true}) → Future<void>
Sets the app icon to iconName, or restores default icon if iconName is null or empty.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited