FocusableControlBuilder class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FocusableControlBuilder
Constructors
-
FocusableControlBuilder({Key? key, required Widget builder(BuildContext context, FocusableControlState control), VoidCallback? onPressed, VoidCallback? onLongPressed, void onHoverChanged(BuildContext context, FocusableControlState control)?, void onFocusChanged(BuildContext context, FocusableControlState control)?, String? semanticButtonLabel, bool enabled = true, bool requestFocusOnPress = true, SystemMouseCursor? cursor, Map<
Type, Action< ? actions, Map<Intent> >ShortcutActivator, Intent> ? shortcuts, HitTestBehavior? hitTestBehavior, bool autoFocus = false, bool descendantsAreFocusable = true, bool descendantsAreTraversable = true}) -
const
Properties
-
actions
→ Map<
Type, Action< ?Intent> > -
Optional. Passed to the FocusableActionDetector. Defines a set of actions which can bind to shortcuts.
final
- autoFocus → bool
-
Passed along to the FocusableActionDetector
final
- builder → Widget Function(BuildContext context, FocusableControlState control)
-
Return a widget representing the control based on the current FocusableControlState
final
- cursor → SystemMouseCursor?
-
Use a custom cursor. By default, SystemMouseCursors.click is used.
final
- descendantsAreFocusable → bool
-
Passed along to the FocusableActionDetector
final
- descendantsAreTraversable → bool
-
Passed along to the FocusableActionDetector
final
- enabled → bool
-
Passed to FocusableActionDetector. Controls whether this widget will accept focus or input of any kind.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hitTestBehavior → HitTestBehavior?
-
Passed along to the GestureDetector that handles onPress and onLongPress
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onFocusChanged → (void Function(BuildContext context, FocusableControlState control)?)
-
Called after the focus state has changed.
final
- onHoverChanged → (void Function(BuildContext context, FocusableControlState control)?)
-
Called after the hover state has changed.
final
- onLongPressed → VoidCallback?
-
Called when the control is long pressed.
final
- onPressed → VoidCallback?
-
Called when the control is pressed.
final
- requestFocusOnPress → bool
-
Whether this control should request focus when it is pressed, defaults to true.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticButtonLabel → String?
-
Optional: If not null, the control will be marked as a semantic button and given a label.
final
-
shortcuts
→ Map<
ShortcutActivator, Intent> ? -
Optional. Passed to the FocusableActionDetector. Defines a set of shortcuts, that will trigger associated actions.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< FocusableControlBuilder> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited