ExtensionFocusScopeContext extension
- on
Properties
- canRequestFocus → bool
-
Available on BuildContext, provided by the ExtensionFocusScopeContext extension
no setter - focusScope → FocusScopeNode
-
Available on BuildContext, provided by the ExtensionFocusScopeContext extension
FocusScopeno setter - hasFocus → bool
-
Available on BuildContext, provided by the ExtensionFocusScopeContext extension
no setter - hasPrimaryFocus → bool
-
Available on BuildContext, provided by the ExtensionFocusScopeContext extension
no setter - isFirstFocus → bool
-
Available on BuildContext, provided by the ExtensionFocusScopeContext extension
no setter - nearestScope → FocusScopeNode
-
Available on BuildContext, provided by the ExtensionFocusScopeContext extension
no setter - parent → FocusNode?
-
Available on BuildContext, provided by the ExtensionFocusScopeContext extension
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Available on BuildContext, provided by the ExtensionFocusScopeContext extension
-
attach(
BuildContext? context, {FocusOnKeyEventCallback? onKeyEvent, FocusOnKeyCallback? onKey}) → FocusAttachment -
Available on BuildContext, provided by the ExtensionFocusScopeContext extension
-
autofocus(
[FocusNode? focusNode]) → void -
Available on BuildContext, provided by the ExtensionFocusScopeContext extension
自动获取焦点 -
focusInDirection(
TraversalDirection direction) → bool -
Available on BuildContext, provided by the ExtensionFocusScopeContext extension
-
nextFocus(
) → bool -
Available on BuildContext, provided by the ExtensionFocusScopeContext extension
-
previousFocus(
) → bool -
Available on BuildContext, provided by the ExtensionFocusScopeContext extension
-
removeListener(
VoidCallback listener) → void -
Available on BuildContext, provided by the ExtensionFocusScopeContext extension
-
requestFocus(
[FocusNode? focusNode]) → void -
Available on BuildContext, provided by the ExtensionFocusScopeContext extension
focusNode==null 移出焦点 (可用于关闭键盘) focusNode!!= null 获取焦点 -
setFirstFocus(
FocusScopeNode scope) → void -
Available on BuildContext, provided by the ExtensionFocusScopeContext extension
-
unfocus(
{UnfocusDisposition disposition = UnfocusDisposition.scope}) → void -
Available on BuildContext, provided by the ExtensionFocusScopeContext extension