create method
Creates the shortcut.
Returns the path of the shortcut.
Implementation
Future<String> create() async {
if (executablePath == null) {
throw ArgumentError.notNull('executablePath');
}
if (Platform.isMacOS) {
return _createMacOSShortcut();
} else if (Platform.isWindows) {
return _createWindowsShortcut();
}
return await _createLinuxShortcut();
}