DVShortcuts class

Constructors

DVShortcuts()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
pressed → Stream<String>
Presses, by shortcut id.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(DVGlobalShortcut shortcut, {void onPressed()?}) → Future<void>
Grabs shortcut system-wide and runs onPressed when it is pressed.
toString() → String
A string representation of this object.
inherited
unregister(String id) → Future<void>
Releases the grab and drops the handler, or a stale closure fires for an id the application thinks is gone.

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

registered → List<String>
The ids currently registered, in registration order.
no setter

Static Methods

dispatch(String id) → void
What a native binding calls when a grabbed key is pressed.
reset() → void
Drops every handler. Tests use this so one cannot fire another's.