MethodChannelLauncherIconSwitcher class
An implementation of LauncherIconSwitcherPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- LauncherIconSwitcherPlatform
- MethodChannelLauncherIconSwitcher
Constructors
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
anddefaultIcon
. Should be called before any other methodoverride -
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 andshouldKeepAlive
is true, plugin will attempt to restart the appoverride -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited