ShortcutManager class
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
FutureOr< void> callback(ShortcutEvent)) → ListenerId -
Registers
callbackfor everyShortcutEventthisShortcutManageremits. -
cancelPendingRegistrations(
String registrationKeyPrefix) → int -
cancelRegistration(
ShortcutId requestId) → bool -
emitShortcutActivated(
ShortcutId id, String accelerator) → void -
getAll(
) → List< Shortcut> -
getByScope(
ShortcutScope scope) → List< Shortcut> -
getWithAccelerator(
String accelerator) → Shortcut? -
getWithId(
ShortcutId id) → Shortcut? -
isAvailable(
String accelerator) → bool -
isEnabled(
) → bool -
isRegistrationPending(
ShortcutId requestId) → bool -
isSupported(
) → bool -
isValidAccelerator(
String accelerator) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerWithAcceleratorAndCallback(
String accelerator, void callback()) → Shortcut? -
registerWithOptions(
ShortcutOptions options) → Shortcut? -
removeListener(
ListenerId listenerId) → bool - Unregisters a listener. Returns false if unknown.
-
requestRegistration(
ShortcutOptions options, String registrationKey) → ShortcutId -
setEnabled(
bool enabled) → void -
toString(
) → String -
A string representation of this object.
inherited
-
unregisterAll(
) → int -
unregisterWithAccelerator(
String accelerator) → bool -
unregisterWithId(
ShortcutId id) → bool
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- instance → const ShortcutManager
- The shared instance backed by the native singleton.