HotKey constructor

HotKey(
  1. KeyCode keyCode, {
  2. List<KeyModifier>? modifiers,
  3. String? identifier,
  4. HotKeyScope? scope,
})

Implementation

HotKey(
  this.keyCode, {
  this.modifiers,
  String? identifier,
  HotKeyScope? scope,
}) {
  if (identifier != null) this.identifier = identifier;
  if (scope != null) this.scope = scope;
}