DyListView<T> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- DyListView
Constructors
-
DyListView({Key? key, required DyListViewController<
T> controller, required Widget itemBuilder(BuildContext, int, DyItemData<T> ), DyListViewAddonConfig addonWidget = const DyListViewAddonConfig(), DyListViewGroupDataAddonConfig<DyDataGroup> ? addonWidgetOnGroupData = const DyListViewGroupDataAddonConfig(), DyListViewGroupDataAddonConfig<DyDataPage> ? addonWidgetOnPageData = const DyListViewGroupDataAddonConfig(), DyNextPageLoadingWidgetConfig nextLoadingWidget = const DyNextPageLoadingWidgetConfig(), DyNextPageLoadingErrorWidgetConfig? nextLoadingErrorWidget = const DyNextPageLoadingErrorWidgetConfig(), DyListViewConfig config = const DyListViewConfig(), DyWidgetConfig noDataWidgetConfig = const DyWidgetConfig(), DyWidgetConfig loadingWidgetConfig = const DyWidgetConfig(), DyWidgetConfig errorWidgetConfig = const DyWidgetConfig(), Widget loadingWidgetBuilder(BuildContext)?, Widget noDataWidgetBuilder(BuildContext)?, Widget errorWidgetBuilder(BuildContext, Object)?, SliverAppBar sliverAppBarBuilder(BuildContext, bool)?, bool onScrollNotificationListener(ScrollNotification scroll)?}) -
const
Properties
- addonWidget → DyListViewAddonConfig
-
Custom widget to add in List, on start or on end of list
final
-
addonWidgetOnGroupData
→ DyListViewGroupDataAddonConfig<
DyDataGroup> ? -
Custom widget to add in List Group data, on start of Group item widget or on end of Group item widget
final
-
addonWidgetOnPageData
→ DyListViewGroupDataAddonConfig<
DyDataPage> ? -
Custom widget to add in Page, on start of Page first item widget or on end of Page last item widget
final
- config → DyListViewConfig
-
Config for listview
final
-
controller
→ DyListViewController<
T> -
Controller of this widget
final
- errorWidgetBuilder → Widget Function(BuildContext, Object)?
-
Builder to render UI Widget when error on fetch data on first page
final
- errorWidgetConfig → DyWidgetConfig
-
Config for Widget builder when state error
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
itemBuilder
→ Widget Function(BuildContext, int, DyItemData<
T> ) -
Builder to render UI Widget of list item
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadingWidgetBuilder → Widget Function(BuildContext)?
-
Builder to render UI Widget when error on fetch data on first page
final
- loadingWidgetConfig → DyWidgetConfig
-
Config for Widget builder when state loading
final
- nextLoadingErrorWidget → DyNextPageLoadingErrorWidgetConfig?
-
Custom widget when failed to loading next page data
final
- nextLoadingWidget → DyNextPageLoadingWidgetConfig
-
Custom widget when loading next page data
final
- noDataWidgetBuilder → Widget Function(BuildContext)?
-
Builder to render UI Widget when no item
final
- noDataWidgetConfig → DyWidgetConfig
-
Config for Widget builder when state no item
final
- onScrollNotificationListener → bool Function(ScrollNotification scroll)?
-
custom notification listener,
if onScrollNotificationListener not null, onScrollNotificationListener will replace default notification listener on this widget so you need to handle trigger fetch data yourself
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sliverAppBarBuilder → SliverAppBar Function(BuildContext, bool)?
-
custom sliver app bar to added listview
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< DyListView< 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