FocusableActionDetector constructor

const FocusableActionDetector(
  1. {Key key,
  2. bool enabled: true,
  3. FocusNode focusNode,
  4. bool autofocus: false,
  5. Map<LogicalKeySet, Intent> shortcuts,
  6. Map<LocalKey, ActionFactory> actions,
  7. ValueChanged<bool> onShowFocusHighlight,
  8. ValueChanged<bool> onShowHoverHighlight,
  9. ValueChanged<bool> onFocusChange,
  10. @required Widget child}
)

Create a const FocusableActionDetector.

The enabled, autofocus, and child arguments must not be null.

Implementation

const FocusableActionDetector({
  Key key,
  this.enabled = true,
  this.focusNode,
  this.autofocus = false,
  this.shortcuts,
  this.actions,
  this.onShowFocusHighlight,
  this.onShowHoverHighlight,
  this.onFocusChange,
  @required this.child,
})  : assert(enabled != null),
      assert(autofocus != null),
      assert(child != null),
      super(key: key);