setIcon method

  1. @override
Future<void> setIcon(
  1. String icon, {
  2. bool shouldKeepAlive = true,
})
override

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});