CupertinoSuggestionsList<T> class
Renders all the suggestions using a ListView as default. If
layoutArchitecture
is specified, uses that instead.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CupertinoSuggestionsList
Constructors
-
CupertinoSuggestionsList({Key? key, required CupertinoSuggestionsBox? suggestionsBox, TextEditingController? controller, bool getImmediateSuggestions = false, SuggestionSelectionCallback<
T> ? onSuggestionSelected, SuggestionsCallback<T> ? suggestionsCallback, ItemBuilder<T> ? itemBuilder, IndexedWidgetBuilder? itemSeparatorBuilder, LayoutArchitecture? layoutArchitecture, ScrollController? scrollController, CupertinoSuggestionsBoxDecoration? decoration, Duration? debounceDuration, WidgetBuilder? loadingBuilder, WidgetBuilder? noItemsFoundBuilder, ErrorBuilder? errorBuilder, AnimationTransitionBuilder? transitionBuilder, Duration? animationDuration, double? animationStart, AxisDirection? direction, bool? hideOnLoading, bool? hideOnEmpty, bool? hideOnError, bool? keepSuggestionsOnLoading, int? minCharsForSuggestions, bool hideKeyboardOnDrag = false}) -
const
Properties
- animationDuration → Duration?
-
final
- animationStart → double?
-
final
- controller → TextEditingController?
-
final
- debounceDuration → Duration?
-
final
- decoration → CupertinoSuggestionsBoxDecoration?
-
final
- direction → AxisDirection?
-
final
- errorBuilder → ErrorBuilder?
-
final
- getImmediateSuggestions → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideKeyboardOnDrag → bool
-
final
- hideOnEmpty → bool?
-
final
- hideOnError → bool?
-
final
- hideOnLoading → bool?
-
final
-
itemBuilder
→ ItemBuilder<
T> ? -
final
- itemSeparatorBuilder → IndexedWidgetBuilder?
-
final
- keepSuggestionsOnLoading → bool?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- layoutArchitecture → LayoutArchitecture?
-
final
- loadingBuilder → WidgetBuilder?
-
final
- minCharsForSuggestions → int?
-
final
- noItemsFoundBuilder → WidgetBuilder?
-
final
-
onSuggestionSelected
→ SuggestionSelectionCallback<
T> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController?
-
final
- suggestionsBox → CupertinoSuggestionsBox?
-
final
-
suggestionsCallback
→ SuggestionsCallback<
T> ? -
final
- transitionBuilder → AnimationTransitionBuilder?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< CupertinoSuggestionsList< 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