delete method

Future<bool> delete()

Deletes the shortcut.

Returns true if the shortcut was deleted successfully, false otherwise.

Implementation

Future<bool> delete() async {
  if (Platform.isMacOS) {
    return _deleteMacOSShortcut();
  } else if (Platform.isWindows) {
    return _deleteWindowsShortcut();
  }

  return await _deleteLinuxShortcut();
}