setImageFromPath method

  1. @protected
Future<void> setImageFromPath(
  1. Id id,
  2. String path, {
  3. bool isShared = false,
})

Sets the icon's image, by loading an .ico file.

The given path has to be normalized to Windows' \ path format.

This is the opposite of removeImage.

Implementation

@protected
Future<void> setImageFromPath(Id id, String path,
    {bool isShared = false}) async {
  await _channel.invokeMethod(
      'setImageFromPath', {'id': id, 'path': path, 'isShared': isShared});
}