setIcon method
Sets new icon
.
If changing icon requires closing the app and shouldKeepAlive
is true, plugin will attempt to restart the app
Implementation
@override
Future<void> setIcon(String icon, {bool shouldKeepAlive = true}) async =>
await methodChannel.invokeMethod(
'setIcon', {'icon': icon, 'shouldKeepAlive': shouldKeepAlive});