setIcon method
Sets window/taskbar icon.
Supported Platforms:
- Windows
Implementation
Future<void> setIcon(String iconPath) async {
final Map<String, dynamic> arguments = {
'iconPath': path.joinAll([
path.dirname(Platform.resolvedExecutable),
'data/flutter_assets',
iconPath,
]),
};
await _invokeMethod('setIcon', arguments);
}