DyListView<T > class
Constructors
DyListView.new ({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 )?, Future <void > customOnRefresh (DyFetchCustomParam ? customParameter )?, void onInitState ()? })
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
customOnRefresh
→ Future <void > Function(DyFetchCustomParam ? customParameter ) ?
custom function will overide action pull to refresh,
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 setter inherited
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.
final inherited
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
onInitState
→ void Function() ?
custom function will overide action when init state, if not set, will fetch first page data,
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 setter inherited
sliverAppBarBuilder
→ SliverAppBar Function(BuildContext , bool ) ?
custom sliver app bar to added listview
final
dynamic_paging_listview_widget 0.1.4+1