copyWith method

  1. @override
TTableTheme copyWith({
  1. TListAnimationBuilder? animationBuilder,
  2. Duration? animationDuration,
  3. bool? shrinkWrap,
  4. ScrollPhysics? physics,
  5. EdgeInsetsGeometry? padding,
  6. Widget emptyStateBuilder(
    1. BuildContext context
    )?,
  7. String? emptyStateMessage,
  8. IconData? emptyStateIcon,
  9. Widget errorStateBuilder(
    1. BuildContext context,
    2. TListError error
    )?,
  10. String? errorStateMessage,
  11. Widget loadingBuilder(
    1. BuildContext context
    )?,
  12. Widget loadingOverlayBuilder(
    1. BuildContext context
    )?,
  13. Widget? headerWidget,
  14. bool? headerSticky,
  15. Widget? footerWidget,
  16. bool? footerSticky,
  17. bool? needsHorizontalScroll,
  18. double? horizontalScrollWidth,
  19. bool? infiniteScroll,
  20. double? itemBaseHeight,
  21. String? loadingMessage,
  22. String? noMoreItemsMessage,
  23. Widget separatorBuilder(
    1. BuildContext context,
    2. int index
    )?,
  24. bool? showSeparators,
  25. double? itemSpacing,
  26. double? cardWidth,
  27. bool? forceCardStyle,
  28. TTableRowHeaderTheme? headerTheme,
  29. TTableMobileCardTheme? mobileCardTheme,
  30. TTableRowCardTheme? rowCardTheme,
})
override

Implementation

@override
TTableTheme copyWith({
  TListAnimationBuilder? animationBuilder,
  Duration? animationDuration,
  bool? shrinkWrap,
  ScrollPhysics? physics,
  EdgeInsetsGeometry? padding,
  // Empty state
  Widget Function(BuildContext context)? emptyStateBuilder,
  String? emptyStateMessage,
  IconData? emptyStateIcon,
  // Error state
  Widget Function(BuildContext context, TListError error)? errorStateBuilder,
  String? errorStateMessage,
  // Loading state
  Widget Function(BuildContext context)? loadingBuilder,
  Widget Function(BuildContext context)? loadingOverlayBuilder,
  // Header
  Widget? headerWidget,
  bool? headerSticky,
  // Footer
  Widget? footerWidget,
  bool? footerSticky,
  // Horizontal scroll
  bool? needsHorizontalScroll,
  double? horizontalScrollWidth,
  // Infinite scroll
  bool? infiniteScroll,
  double? itemBaseHeight,
  String? loadingMessage,
  String? noMoreItemsMessage,
  // Separators
  Widget Function(BuildContext context, int index)? separatorBuilder,
  bool? showSeparators,
  // Spacing
  double? itemSpacing,
  // Table
  double? cardWidth,
  bool? forceCardStyle,
  TTableRowHeaderTheme? headerTheme,
  TTableMobileCardTheme? mobileCardTheme,
  TTableRowCardTheme? rowCardTheme,
}) {
  return TTableTheme(
    animationBuilder: animationBuilder ?? this.animationBuilder,
    animationDuration: animationDuration ?? this.animationDuration,
    shrinkWrap: shrinkWrap ?? this.shrinkWrap,
    physics: physics ?? this.physics,
    padding: padding ?? this.padding,
    emptyStateBuilder: emptyStateBuilder ?? this.emptyStateBuilder,
    emptyStateMessage: emptyStateMessage ?? this.emptyStateMessage,
    emptyStateIcon: emptyStateIcon ?? this.emptyStateIcon,
    errorStateBuilder: errorStateBuilder ?? this.errorStateBuilder,
    errorStateMessage: errorStateMessage ?? this.errorStateMessage,
    loadingBuilder: loadingBuilder ?? this.loadingBuilder,
    headerWidget: headerWidget ?? this.headerWidget,
    headerSticky: headerSticky ?? this.headerSticky,
    footerWidget: footerWidget ?? this.footerWidget,
    footerSticky: footerSticky ?? this.footerSticky,
    needsHorizontalScroll: needsHorizontalScroll ?? this.needsHorizontalScroll,
    horizontalScrollWidth: horizontalScrollWidth ?? this.horizontalScrollWidth,
    infiniteScroll: infiniteScroll ?? this.infiniteScroll,
    itemBaseHeight: itemBaseHeight ?? this.itemBaseHeight,
    loadingMessage: loadingMessage ?? this.loadingMessage,
    noMoreItemsMessage: noMoreItemsMessage ?? this.noMoreItemsMessage,
    separatorBuilder: separatorBuilder ?? this.separatorBuilder,
    showSeparators: showSeparators ?? this.showSeparators,
    itemSpacing: itemSpacing ?? this.itemSpacing,
    cardWidth: cardWidth ?? this.cardWidth,
    forceCardStyle: forceCardStyle ?? this.forceCardStyle,
    headerTheme: headerTheme ?? this.headerTheme,
    mobileCardTheme: mobileCardTheme ?? this.mobileCardTheme,
    rowCardTheme: rowCardTheme ?? this.rowCardTheme,
  );
}