FocusTest class
Properties
buildCount
→ int
The number of times this widget has been built.
no setter inherited
context
→ BuildContext
The current context (_StatefulPropsElement
)
no setter inherited
focus
→ FocusNodeProp
late final
hashCode
→ int
The hash code for this object.
no setter inherited
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
mounted
→ bool
Indicates whether the context is currently mounted.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
setState
→ void Function(VoidCallback )
A setState call which is eventually passed around to every prop, so it can trigger rebuilds.
no setter inherited
Methods
build (BuildContext context )
→ Widget
Wraps the results of buildWithProps in any currently registered prop builders.
Common props that use builders are LayoutProp , TapDetectorProp and KeyboardListenerProp
inherited
buildWithProps (BuildContext context )
→ Widget
Replaces build method. You can return your widget here, and it will automatically
be wrapped with any registered prop builders.
Common props that use builders are LayoutProp , TapDetectorProp and KeyboardListenerProp
override
createElement ()
→ StatelessElement
Create a custom _StatefulPropsElement
which does the work
of maintaining and managing state for this widget.
inherited
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
disposeProps ()
→ void
Called once when the
inherited
initProps ()
→ void
Called once just before the first build call is made.
Allows props to setup, and perform initial actions.
This is called from the _PropsWidgetElement
which is stateful.
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 , int wrapWidth = 65 })
→ 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
touchProps (List <StatefulProp > props )
→ void
A convenience method to allow views to force initialize variables set using the late
keyword. For example, a TapDetectorProp might be added, and never
inherited
useDependentProp <T extends StatefulProp > (String id , {required T create (BuildContext c , Widget w ) })
→ T
Similar to useProp, but allows a prop to bind to external dependencies,
either from the Widget or an InheritedWidget. The create
method is
re-run when dependencies change and the props can update themselves with
the latest values.
inherited
useProp <T extends StatefulProp <Object > > (String id , T propBuilder () )
→ T
Gets a prop matching the specified id, if non exists the default value is used.
inherited