TListTheme constructor
const
TListTheme({
- TListAnimationBuilder? animationBuilder = TListAnimationBuilders.staggered,
- Duration animationDuration = const Duration(milliseconds: 800),
- bool shrinkWrap = false,
- ScrollPhysics? physics,
- EdgeInsets? padding,
- TListEmptyBuilder? emptyStateBuilder,
- TListErrorBuilder? errorStateBuilder,
- TListLoadingBuilder? loadingBuilder,
- TListHeaderBuilder? headerBuilder,
- bool? headerSticky,
- bool? infiniteScroll,
- double? itemBaseHeight,
- TListSeparatorBuilder? listSeparatorBuilder,
- TListDragProxyDecorator? dragProxyDecorator,
- TGridMode? grid,
- TGridDelegateBuilder? gridDelegate,
Creates a list theme.
Implementation
const TListTheme({
this.animationBuilder = TListAnimationBuilders.staggered,
this.animationDuration = const Duration(milliseconds: 800),
this.shrinkWrap = false,
this.physics,
this.padding,
this.emptyStateBuilder,
this.errorStateBuilder,
this.loadingBuilder,
this.headerBuilder,
this.headerSticky,
this.footerBuilder,
this.footerSticky,
this.infiniteScroll,
double? itemBaseHeight,
required this.infiniteScrollFooterBuilder,
this.listSeparatorBuilder,
this.dragProxyDecorator,
this.grid,
this.gridDelegate,
}) : assert(!shrinkWrap || infiniteScroll != true, 'TListTheme: shrinkWrap disables scrolling, so infiniteScroll cannot be used.'),
assert(!shrinkWrap || headerSticky != true, 'TListTheme: shrinkWrap disables scrolling, so headerSticky cannot be used.'),
assert(!shrinkWrap || footerSticky != true, 'TListTheme: shrinkWrap disables scrolling, so footerSticky cannot be used.'),
itemBaseHeight = grid != null ? 200 : 40;