MethodChannelLauncherIconSwitcher class

An implementation of LauncherIconSwitcherPlatform 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

Methods

getCurrentIcon() Future<String>
Finds out which icon is currently set
override
initialize(List<String> icons, String defaultIcon) Future<void>
Initializes plugin with icons and defaultIcon. Should be called before any other method
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setIcon(String icon, {bool shouldKeepAlive = true}) Future<void>
Sets new icon. If changing icon requires closing the app and shouldKeepAlive is true, plugin will attempt to restart the app
override
toString() String
A string representation of this object.
inherited

Operators

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