attach method

FocusAttachment attach(
  1. BuildContext? context, {
  2. FocusOnKeyEventCallback? onKeyEvent,
  3. FocusOnKeyCallback? onKey,
})

Implementation

FocusAttachment attach(BuildContext? context,
        {FocusOnKeyEventCallback? onKeyEvent, FocusOnKeyCallback? onKey}) =>
    focusScope.attach(context, onKey: onKey, onKeyEvent: onKeyEvent);