Shortcut class
- Implemented types
Constructors
- Shortcut.borrowed(int nativeHandle)
- Wraps a handle owned elsewhere; releasing it stays the owner's job.
- Shortcut.fromHandle(int nativeHandle)
- Adopts a handle returned by the C API and releases it when this object becomes unreachable.
Properties
- accelerator → String?
-
no setter
- description ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
no setter
- isEnabled ↔ bool
-
getter/setter pair
- nativeHandle → int
-
The underlying handle-table entry.
final
- registrationKey → String?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → ShortcutScope
-
no setter
- triggerDescription → String?
-
no setter
Methods
-
dispose(
) → void - Releases the handle now instead of at collection.
-
invoke(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setCallback(
void callback()) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
createWithIdAndAcceleratorAndCallback(
ShortcutId id, String accelerator, void callback()) → Shortcut? -
Creates a new
Shortcut; returns null if the native side failed. -
createWithIdAndOptions(
ShortcutId id, ShortcutOptions options) → Shortcut? -
Creates a new
Shortcut; returns null if the native side failed.