ApplianceTagInput<T extends Object> class
A tag input: the choices made stand in the well as small keys, each with its own remove key, the words typed after them. Suggestions open on a plate under it; Enter (or a comma) takes the lit one, or what was typed when onCreate makes one of it, and the field keeps the focus for the next. Backspace in an empty field removes the last.
ApplianceTagInput<String>(label: 'Rooms', values: const ['Kitchen'], options: const ['Kitchen', 'Hall', 'Garden'], onChanged: (rooms) {})
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ApplianceTagInput
Constructors
-
ApplianceTagInput({Key? key, required List<
T> values, required ValueChanged<List< onChanged, List<T> >T> options = const [], DesignOptionSearch<T> ? search, Duration? debounceDuration, T? onCreate(String text)?, String displayStringForOption(T option)?, String? label, String? hint, String? helper, String? error, String? semanticLabel, String? deleteLabel, int? maxTags, bool enabled = true, ApplianceStyle? style}) -
A tag input holding
values.const
Properties
- debounceDuration → Duration?
-
How long the typing rests before search runs; null runs it at once.
final
- deleteLabel → String?
-
A remove key's name for a screen reader; "Remove" otherwise.
final
- displayStringForOption → String Function(T option)?
-
An option's words;
toStringotherwise.final - enabled → bool
-
Whether it takes choices.
final
- error → String?
-
What is wrong, under the well.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- helper → String?
-
Help under the well.
final
- hint → String?
-
What the well says while it is empty.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String?
-
The words over the well.
final
- maxTags → int?
-
The most choices.
final
-
onChanged
→ ValueChanged<
List< T> > -
Called with the choices after a change.
final
- onCreate → T? Function(String text)?
-
Makes a choice of words typed that match no option; null: only options.
final
-
options
→ List<
T> -
What can be chosen.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
search
→ DesignOptionSearch<
T> ? -
Looks the words up instead of filtering options.
final
- semanticLabel → String?
-
The field's name for a screen reader, when label is not shown.
final
- style → ApplianceStyle?
-
The well's style, over ApplianceThemeData.textFieldStyle.
final
-
values
→ List<
T> -
The choices made.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ApplianceTagInput< T> > -
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.
override
-
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