ZwapHintInput class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ZwapHintInput
Constructors
-
ZwapHintInput({required Widget buildSelectedItem(String), required Map<
String, String> items, required List<String> selectedItems, TextStyle? textStyle, double minHeight = 100, double width = double.infinity, String placeholder = '', TextStyle? placeholderTextStyle, dynamic onItemSelected(String)?, bool doNotSuggestAlreadySelected = true, int? minItems, int maxHints = 4, FutureOr<bool?> onFocusChanged(FocusNode)?, Key? key}) -
const
Properties
- buildSelectedItem → Widget Function(String)
-
Used to build a widget for all selected items
final
- doNotSuggestAlreadySelected → bool
-
Is true all items already selected will not displayed
in the hint overlay
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ Map<
String, String> -
Keys are used for callbacks and comparison of items
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxHints → int
-
Must be grater than 0, will be used to
limit the displayed suggestions
final
- minHeight → double
-
final
- minItems → int?
-
If not null and selectedItems's length is not less
than minItems the border color of the input will painted with
ZwapColors.success400 is not selected or hovered
final
-
onFocusChanged
→ (FutureOr<
bool?> Function(FocusNode)?) -
Called each time the focus state change. The focusNode
is passed even by parameter.
final
- onItemSelected → (dynamic Function(String)?)
-
Notify that an item has been selected by the dropdown
final
- placeholder → String
-
Displayed when input is empty
final
- placeholderTextStyle → TextStyle?
-
TextStyle of placeholder
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectedItems
→ List<
String> -
List of keys of selected items
final
- textStyle → TextStyle?
-
TextStyle of test typed by the user
final
- width → double
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ZwapHintInput> -
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