DVShortcut class

A serializable shortcut. command refers to a callback supplied by the app; loading data never evaluates code or invokes the callback.

Constructors

DVShortcut({required String keys, required String command, required String label, bool allowInTextFields = false})
const
DVShortcut.fromJson(Map<String, Object?> json)
factory

Properties

allowInTextFields → bool
final
command → String
final
hashCode → int
The hash code for this object.
no setterinherited
keys → String
final
label → String
final
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
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited
validate() → void
Fail early for malformed data, including unknown keys and modifiers.

Operators

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