GlossTagInput<T extends Object> class

Values held as pearl tags in a well, with a field after them that suggests and makes more. Enter, or a comma, makes the typed words a tag and keeps the focus for the next.

GlossTagInput<String>(label: 'Pantry', values: const ['Rice'], onChanged: (values) {}, onCreate: (text) => text)
Inheritance

Constructors

GlossTagInput({Key? key, required List<T> values, required ValueChanged<List<T>> onChanged, Iterable<T> options = const [], DesignOptionSearch<T>? search, T? onCreate(String text)?, String displayStringForOption(T value)?, bool isOptionEnabled(T option)?, int? maxTags, Duration? debounceDuration, TextEditingController? controller, FocusNode? focusNode, String? label, String? hint, String? helper, String? error, bool enabled = true, String? semanticLabel, GlossStyle? style})
A tag input over values.
const

Properties

controller → TextEditingController?
The words, when the caller reads or sets them; null: the field keeps its own.
final
debounceDuration → Duration?
How long the typing rests before search runs; null runs it at once. While a search is on its way the list says so; when it fails, the list says that and offers Try again.
final
displayStringForOption → String Function(T value)?
A value's words; null: its toString.
final
enabled → bool
Whether it takes input.
final
error → String?
What is wrong, under the well.
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
helper → String?
Help under the well.
final
hint → String?
What the empty field says.
final
isOptionEnabled → bool Function(T option)?
Whether a suggestion can be taken; null: all can.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String?
The words above the well.
final
maxTags → int?
The most tags it holds.
final
onChanged → ValueChanged<List<T>>
The new tags; a disabled input ignores it.
final
onCreate → T? Function(String text)?
Makes a tag of typed words; null: only suggestions become tags.
final
options → Iterable<T>
Suggestions, filtered by the words typed.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
Finds the suggestions for a query itself.
final
semanticLabel → String?
What a screen reader calls it; null: label.
final
style → GlossStyle?
This input's own style, over GlossThemeData.tagInputStyle.
final
values → List<T>
The tags.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
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
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