TTableDetails<T, K> constructor

const TTableDetails<T, K>({
  1. TTableExpansionMode mode = TTableExpansionMode.bottom,
  2. TTableExpansionMode? createMode,
  3. String? itemTitle(
    1. T item
    )?,
  4. String? itemSubTitle(
    1. T item
    )?,
  5. String? itemDescription(
    1. T item
    )?,
  6. String? itemImageUrl(
    1. T item
    )?,
  7. List<Widget> itemHighlights(
    1. T item
    )?,
  8. List<TKeyValue>? itemInfo(
    1. T item
    )?,
  9. TKeyValueMode? itemInfoMode,
  10. List<Widget> actions(
    1. T item
    )?,
  11. Future<bool> onWillExpand(
    1. K key
    )?,
  12. Future<bool> onWillCollapse(
    1. K key
    )?,
  13. bool focus = false,
  14. double? dimmedOpacity,
  15. TListExpandedBuilder<T, K>? builder,
  16. TTableCreateBuilder<T, K>? createBuilder,
  17. String? createTitle(
    1. T? item
    )?,
  18. Widget layoutBuilder(
    1. BuildContext context,
    2. TTableDetails<T, K> details,
    3. T? item,
    4. Widget child,
    )?,
  19. bool showLayoutForBottom = false,
  20. double dialogWidth = 800.0,
  21. double? createDialogWidth,
  22. double sideOverlayWidth = 500.0,
  23. double? createSideOverlayWidth,
  24. double? sideOverlayMinWidth = 320.0,
  25. double? sideOverlayMaxWidth,
  26. double? sideOverlayWidthRatio,
  27. double? createSideOverlayMinWidth,
  28. double? createSideOverlayMaxWidth,
  29. double? createSideOverlayWidthRatio,
  30. TSheetHeightMode sideOverlayHeightMode = TSheetHeightMode.shrinkWrap,
  31. bool autoExpandFirst = false,
  32. bool autoSelectFirst = false,
  33. bool itemInfoGridInline = true,
  34. bool? expandOnRowTap,
  35. dynamic expandIcon,
  36. dynamic collapseIcon,
  37. bool showExpandIcon = true,
  38. bool? rowTapDetails,
  39. bool? onRowTapDetails,
})

Implementation

const TTableDetails({
  this.mode = TTableExpansionMode.bottom,
  this.createMode,
  this.itemTitle,
  this.itemSubTitle,
  this.itemDescription,
  this.itemImageUrl,
  this.itemHighlights,
  this.itemInfo,
  this.itemInfoMode,
  this.actions,
  this.onWillExpand,
  this.onWillCollapse,
  this.focus = false,
  this.dimmedOpacity,
  this.builder,
  this.createBuilder,
  this.createTitle,
  this.layoutBuilder,
  this.showLayoutForBottom = false,
  this.dialogWidth = 800.0,
  this.createDialogWidth,
  this.sideOverlayWidth = 500.0,
  this.createSideOverlayWidth,
  this.sideOverlayMinWidth = 320.0,
  this.sideOverlayMaxWidth,
  this.sideOverlayWidthRatio,
  this.createSideOverlayMinWidth,
  this.createSideOverlayMaxWidth,
  this.createSideOverlayWidthRatio,
  this.sideOverlayHeightMode = TSheetHeightMode.shrinkWrap,
  this.autoExpandFirst = false,
  this.autoSelectFirst = false,
  this.itemInfoGridInline = true,
  bool? expandOnRowTap,
  this.expandIcon,
  this.collapseIcon,
  this.showExpandIcon = true,
  bool? rowTapDetails,
  bool? onRowTapDetails,
}) : expandOnRowTap = expandOnRowTap ?? rowTapDetails ?? onRowTapDetails ?? true;