IndexedListViewBuilder<T extends Object> class
A stateful indexed list view widget that displays a list of items.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- StatefulIndexedListView<
T> - IndexedListViewBuilder
- Mixed in types
Constructors
-
IndexedListViewBuilder(Iterable<
T> items, {bool addAutomaticKeepAlives = true, bool? addRepaintBoundaries, bool? addSemanticIndexes, double? cacheExtent, Iterable<T> ? chosen, Clip? clipBehavior, CrossAxisAlignment? crossAxisAlignment, Axis? direction, Iterable<T> ? disabled, DragStartBehavior? dragStartBehavior, Widget emptyStatePlaceholder = UiConstants.placeholder, Widget? header, Widget? itemBuilder(ItemProperties<T> itemProperties, {bool? isDense})?, Key? key, ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior, MainAxisAlignment? mainAxisAlignment, MainAxisSize? mainAxisSize, ValueSetter<T> ? onSelect, EdgeInsetsGeometry? padding, ScrollPhysics? physics, bool? primary, String? restorationId, bool? reverse, ScrollController? scrollController, Widget? separator, bool? showHeader, bool? shrinkWrap, int sort(T, T)?, TextBaseline? textBaseline, TextDirection? textDirection, VerticalDirection? verticalDirection}) -
Constructor for the IndexedListViewBuilder class.
const
Properties
- addAutomaticKeepAlives → bool
-
Whether to wrap each child in an
AutomaticKeepAlive
.finalinherited - addRepaintBoundaries → bool?
-
Whether to wrap each child in a
RepaintBoundary
.finalinherited - addSemanticIndexes → bool?
-
Whether to wrap each child in an
IndexedSemantics
.finalinherited - cacheExtent → double?
-
The viewport has an area before and after the visible area to cache items
that are about to become visible when the user scrolls.
finalinherited
-
chosen
→ Iterable<
T> ? -
A list of items that should be highlighted as selected.
finalinherited
- clipBehavior → Clip?
-
The content will be clipped (or not) according to this option.
finalinherited
- crossAxisAlignment → CrossAxisAlignment?
-
How the items should be placed along the cross axis.
finalinherited
- direction → Axis?
-
The Axis along which the scroll view's offset increases.
finalinherited
-
disabled
→ Iterable<
T> ? -
A list of items that should be disabled.
finalinherited
- dragStartBehavior → DragStartBehavior?
-
Determines the way that drag start behavior is handled.
finalinherited
- emptyStatePlaceholder → Widget
-
A widget to display when the list is empty.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → Widget?
-
A widget to display above the list of items.
finalinherited
-
itemBuilder
→ (Widget? Function(ItemProperties<
T> itemProperties, {bool? isDense})?) -
A builder that returns a widget to display an item in the list.
finalinherited
-
items
→ Iterable<
T> -
The list of items to display.
finalinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardDismissBehavior → ScrollViewKeyboardDismissBehavior?
-
ScrollViewKeyboardDismissBehavior the defines how this ScrollView will
dismiss the keyboard automatically.
finalinherited
- mainAxisAlignment → MainAxisAlignment?
-
How the items should be placed along the main axis.
finalinherited
- mainAxisSize → MainAxisSize?
-
How much space should be occupied in the main axis.
finalinherited
-
onSelect
→ ValueSetter<
T> ? -
A callback that is called when an item is selected.
finalinherited
- padding → EdgeInsetsGeometry?
-
The amount of space by which to inset the children.
finalinherited
- physics → ScrollPhysics?
-
How the scroll view should respond to user input.
finalinherited
- primary → bool?
-
Whether this is the primary scroll view associated with the parent
PrimaryScrollController.
finalinherited
- restorationId → String?
-
Restoration ID to save and restore the scroll offset of the scrollable.
finalinherited
- reverse → bool?
-
Whether the scroll view scrolls in the reading direction.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController?
-
An object that can be used to control the position to which this scroll
view is scrolled.
finalinherited
- separator → Widget?
-
A widget to display between each item in the list.
finalinherited
- showHeader → bool?
-
Whether to show the header widget.
finalinherited
- shrinkWrap → bool?
-
Whether the extent of the scroll view in the
scrollDirection
should be determined by the contents being viewed.finalinherited - sort → (int Function(T, T)?)
-
A function to sort the items in the list.
finalinherited
- textBaseline → TextBaseline?
-
If aligning items according to their baseline, which baseline to use.
finalinherited
- textDirection → TextDirection?
-
Determines the order to lay children out horizontally and how to interpret
start
andend
in the horizontal direction.finalinherited - verticalDirection → VerticalDirection?
-
Determines the order to lay children out vertically and how to interpret
start
andend
in the vertical direction.finalinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< IndexedListViewBuilder< Object> > -
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
-
filteredProperties(
Iterable< T> filtered, BuildContext context, int index) → ItemProperties<T> -
Creates ItemProperties for an item at the specified
index
using the providedfiltered
items andcontext
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
properties(
BuildContext context, int index) → ItemProperties< T> -
Returns the ItemProperties for an item at the specified
index
.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