GlossSearchField class
A search field: a round-ended well with a magnifier at its start and, once there are words, a bead that clears them.
GlossSearchField(hint: 'Search recipes', onChanged: (query) {})
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- GlossSearchField
Constructors
-
GlossSearchField({Key? key, TextEditingController? controller, FocusNode? focusNode, String? hint, ValueChanged<
String> ? onChanged, ValueChanged<String> ? onSubmitted, bool enabled = true, bool autofocus = false, String? semanticLabel, GlossStyle? style}) -
A search field.
const
Properties
- autofocus → bool
-
Whether it takes the focus when it first shows.
final
- controller → TextEditingController?
-
The words, when the caller reads or sets them; null: the field keeps
its own.
final
- enabled → bool
-
Whether it takes input.
final
- focusNode → FocusNode?
-
The focus, when the caller moves it; null: the field keeps its own.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hint → String?
-
What the empty field says; null: the platform's word for search.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onChanged
→ ValueChanged<
String> ? -
Each change of the query.
final
-
onSubmitted
→ ValueChanged<
String> ? -
Enter: search now.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticLabel → String?
-
What a screen reader calls it; null: hint.
final
- style → GlossStyle?
-
This field's own style, over GlossThemeData.searchFieldStyle.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< GlossSearchField> -
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, 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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited