NUIHeaderGrid<T, C> constructor
NUIHeaderGrid<T, C> ({
- Widget? header,
- required NUIListViewBloc<
T, C> bloc, - required NUIListItemRepository repo,
- required List<
T> initialList, - required OnListItemClickListener clickListener,
- bool shrinkWrap = false,
- double? startDivider,
- double? endDivider,
- double? middleDivider,
- ListFixedItemGetter? fixedFirstItem,
- ListFixedItemGetter? fixedLastItem,
- Axis orientation = Axis.vertical,
- EdgeInsets? padding,
- bool enablePagination = false,
- bool enableSwipeRefresh = false,
- int minimumPaginateCount = 5,
- NUILoadingListItem? skeletalInflater,
- NUILoadingListItem? paginationInflater,
- ListShadowInflater? shadowInflater,
- ListPlaceHolderInflater? placeHolder,
- ListErrorHolderInflater? errorHolder,
- int skeletalCount = 1,
- Duration? itemAnimationDuration,
- NUIShaderMaskType? shaderType,
- required NUIListController controller,
- NUIListScrollListener? scrollListener,
- ScrollPhysics? scrollPhysics,
- Map<
String, dynamic> ? checkedMap, - Map<
String, dynamic> ? configMap, - required SliverGridDelegateWithFixedCrossAxisCount gridDelegate,
- bool withOverlapsAbsorber = false,
Implementation
NUIHeaderGrid({
this.header,
required NUIListViewBloc<T, C> bloc,
required NUIListItemRepository repo,
required List<T> initialList,
required OnListItemClickListener clickListener,
bool shrinkWrap = false,
double? startDivider,
double? endDivider,
double? middleDivider,
ListFixedItemGetter? fixedFirstItem,
ListFixedItemGetter? fixedLastItem,
Axis orientation = Axis.vertical,
EdgeInsets? padding,
bool enablePagination = false,
bool enableSwipeRefresh = false,
int minimumPaginateCount = 5,
NUILoadingListItem? skeletalInflater,
NUILoadingListItem? paginationInflater,
ListShadowInflater? shadowInflater,
ListPlaceHolderInflater? placeHolder,
ListErrorHolderInflater? errorHolder,
int skeletalCount = 1,
Duration? itemAnimationDuration,
NUIShaderMaskType? shaderType,
required NUIListController controller,
NUIListScrollListener? scrollListener,
ScrollPhysics? scrollPhysics,
Map<String, dynamic>? checkedMap,
Map<String, dynamic>? configMap,
required this.gridDelegate,
this.withOverlapsAbsorber = false,
}) : super(
repo: repo,
initialList: initialList,
orientation: orientation,
padding: padding,
shrinkWrap: shrinkWrap,
startDivider: startDivider,
endDivider: endDivider,
middleDivider: middleDivider,
fixedFirstItem: fixedFirstItem,
fixedLastItem: fixedLastItem,
checkedMap: checkedMap,
configMap: configMap,
clickListener: clickListener,
skeletalCount: skeletalCount,
errorHolder: errorHolder,
placeHolder: placeHolder,
scrollListener: scrollListener,
shaderType: shaderType,
skeletalInflater: skeletalInflater,
paginationInflater: paginationInflater,
scrollPhysics: scrollPhysics,
enablePagination: enablePagination,
itemAnimationDuration: itemAnimationDuration,
enableSwipeRefresh: enableSwipeRefresh,
minimumPaginateCount: minimumPaginateCount,
bloc: bloc,
skipAnimation: true,
controller: controller,
itemAnimation : NUIListItemAnimation.NONE
);