ChipsInput<T> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ChipsInput
Constructors
-
ChipsInput({Key? key, required String id, Iterable<
T> ? initialValue, InputDecoration decoration = const InputDecoration(), bool enabled = true, required BuildChipsWidget<T> chipBuilder, BuildChipsWidget<T> ? suggestionBuilder, GenerateSuggestions<T> ? findSuggestions, String? placeholder, double? elevation, ChipTokenizer<T> ? chipTokenizer, ValueChanged<T> ? onChipTapped, QueryChanged<T> ? onQueryChanged, OnLostFocus<T> ? onLostFocus, ChipsChanged<T> ? onChipsChanged, int? maxChips, VoidCallback? onSwipeClosed, TextInputConfiguration? inputConfiguration, bool? autofocus, FocusNode? focusNode, String? query, PerformTextInputAction<T> ? onInputAction, bool? hideSuggestionsOverlay, ChipAction<T> ? onSuggestionTap, ChipsInputController<T> ? controller, ChipIdentifier<T> ? chipId})
Properties
- autofocus → bool?
-
final
-
chipBuilder
→ BuildChipsWidget<
T> -
final
-
chipId
→ ChipIdentifier<
T> ? -
final
-
chipTokenizer
→ ChipTokenizer<
T> ? -
Generates tokens for a chip. If this is provided, then inline suggestions will show up.
final
-
controller
→ ChipsInputController<
T> ? -
Allows external control of the data within this input
final
- decoration → InputDecoration
-
final
- elevation → double?
-
final
- enabled → bool
-
final
-
findSuggestions
→ GenerateSuggestions<
T> ? -
Callback to generate suggestions. This is only used when not providing a controller
final
- focusNode → FocusNode?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideSuggestionsOverlay → bool?
-
final
- id → String
-
An identifier that allows to reference internals better
final
-
initialValue
→ List<
T> ? -
final
- inputConfiguration → TextInputConfiguration?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxChips → int?
-
final
-
onChipsChanged
→ ChipsChanged<
T> ? -
final
-
onChipTapped
→ ValueChanged<
T> ? -
final
-
onInputAction
→ PerformTextInputAction<
T> ? -
final
-
onLostFocus
→ OnLostFocus<
T> ? -
final
-
onQueryChanged
→ QueryChanged<
T> ? -
final
-
onSuggestionTap
→ ChipAction<
T> ? -
final
- onSwipeClosed → VoidCallback?
-
When the user swipes when the chips input is empty
final
- placeholder → String?
-
final
- query → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
suggestionBuilder
→ BuildChipsWidget<
T> ? -
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → ChipsInputState< 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.
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