ExtensionFocusScopeContext extension

on

Properties

canRequestFocus bool
no setter
focusScope FocusScopeNode
FocusScope
no setter
hasFocus bool
no setter
hasPrimaryFocus bool
no setter
isFirstFocus bool
no setter
nearestScope FocusScopeNode
no setter
parent FocusNode?
no setter

Methods

addListener(VoidCallback listener) → void
attach(BuildContext? context, {FocusOnKeyEventCallback? onKeyEvent, FocusOnKeyCallback? onKey}) FocusAttachment
autofocus([FocusNode? focusNode]) → void
自动获取焦点
focusInDirection(TraversalDirection direction) bool
nextFocus() bool
previousFocus() bool
removeListener(VoidCallback listener) → void
requestFocus([FocusNode? focusNode]) → void
focusNode==null 移出焦点 (可用于关闭键盘) focusNode!!= null 获取焦点
setFirstFocus(FocusScopeNode scope) → void
unfocus({UnfocusDisposition disposition = UnfocusDisposition.scope}) → void