registerWithOptions method
Implementation
Shortcut? registerWithOptions(ShortcutOptions options) {
final optionsPointer = options.allocNative();
final handle = c.native_shortcut_manager_register_with_options(
optionsPointer.ref,
);
ShortcutOptions.freeNative(optionsPointer);
if (handle == 0) return null;
return Shortcut.fromHandle(handle);
}