SelectPagingListView<T> class
Widget ListView paging with feature item selector, list seleted item not be reset when trigger fetch function
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SelectPagingListView
Constructors
-
SelectPagingListView.new({Key? key, required SelectPagingListViewController<
T> controller, required Future<void> onRefresh(), Future<void> onFetchNextPage()?, required Widget itemBuilder(BuildContext, int, PageableListViewItemData<T> ), List<Widget> ? loadingWidget, List<Widget> ? errorWidget, List<Widget> ? emptyWidget, bool shrinkWrap = false, bool stickToTopWidget = false, List<Widget> builderbottomWidget(BuildContext)?, List<Widget> buildertopWidget(BuildContext)?, Widget loadingNextPageBuilder(BuildContext, int)?, bool stickToBottomWidget = false, double stickToBottomWidgetPaddingBottom = 0, double stickToTopWidgetPaddingTop = 0, bool enabledControllerAutoDispose = false, bool stickToBottomLoadingNextPageBuilder = true, Widget widgetBuilderFirstOnGroupItem(BuildContext, int, PageableListViewItemDataGroup)?, Widget widgetBuilderLastOnGroupItem(BuildContext, int, PageableListViewItemDataGroup)?}) -
const
Properties
-
builderbottomWidget
→ List<
Widget> Function(BuildContext)? -
Custom Widget UI to be show after widget list item
final
-
buildertopWidget
→ List<
Widget> Function(BuildContext)? -
Custom Builder Widget UI to be show before widget list item
final
-
controller
→ SelectPagingListViewController<
T> -
Controller of this widget
final
-
emptyWidget
→ List<
Widget> ? -
Custom Widget UI to be show when list data is empty
final
- enabledControllerAutoDispose → bool
-
Flag to enabled or disable controller auto dispose when widget disposed
final
-
errorWidget
→ List<
Widget> ? -
Custom Widget UI to be show when state has error
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
itemBuilder
→ Widget Function(BuildContext, int, PageableListViewItemData<
T> ) -
Builder to render UI Widget of list item
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadingNextPageBuilder → Widget Function(BuildContext, int)?
-
Custom Widget UI to be show when in loading for fetch data of next page
final
-
loadingWidget
→ List<
Widget> ? -
Custom Widget UI to be show when state in loading on fetch first page data
final
-
onFetchNextPage
→ Future<
void> Function()? -
Function onFetchNextPage
final
-
onRefresh
→ Future<
void> Function() -
Function OnRefresh
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shrinkWrap → bool
-
Flag to enabled or disable feature shrinkWrap of list
final
- stickToBottomLoadingNextPageBuilder → bool
-
Flag to enabled or disable feature loadingNextPageBuilder
final
- stickToBottomWidget → bool
-
Flag to enabled or disable feature builderbottomWidget stick on top
final
- stickToBottomWidgetPaddingBottom → double
-
Padding Top of
bottomWidget
when stickToBottomWidget enabledfinal - stickToTopWidget → bool
-
Flag to enabled or disable feature buildertopWidget stick on top
final
- stickToTopWidgetPaddingTop → double
-
Padding Top of
topWidget
when stickToTopWidget enabledfinal - widgetBuilderFirstOnGroupItem → Widget Function(BuildContext, int, PageableListViewItemDataGroup)?
-
Builder to render UI Widget of list item on first index of group
final
- widgetBuilderLastOnGroupItem → Widget Function(BuildContext, int, PageableListViewItemDataGroup)?
-
Builder to render UI Widget of list item on last index of group
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< SelectPagingListView< 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, 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