getShortcutIcon method

Future<Image> getShortcutIcon (
  1. {String packageName,
  2. String shortcutID,
  3. double width: 50,
  4. double height: 50}
)

Implementation

static Future<Image> getShortcutIcon({String packageName, String shortcutID, double width = 50, double height = 50}) async
{
  var args= {'packageName': packageName, 'shortcutID': shortcutID};
  final Uint8List icon = await _channel.invokeMethod("getShortcutIcon", args);
  return Image.memory(icon, width: width, height: height,);
}