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<TKeyValue>? itemInfo(
    1. T item
    )?,
  8. TKeyValueMode? itemInfoMode,
  9. List<Widget> actions(
    1. T item
    )?,
  10. Future<bool> onWillExpand(
    1. K key
    )?,
  11. Future<bool> onWillCollapse(
    1. K key
    )?,
  12. bool focus = false,
  13. double? dimmedOpacity,
  14. TListExpandedBuilder<T, K>? builder,
  15. TTableCreateBuilder<T, K>? createBuilder,
  16. String? createTitle(
    1. T? item
    )?,
  17. Widget layoutBuilder(
    1. BuildContext context,
    2. TTableDetails<T, K> details,
    3. T? item,
    4. Widget child,
    )?,
  18. bool showLayoutForBottom = false,
  19. double dialogWidth = 800.0,
  20. double? createDialogWidth,
  21. double sideOverlayWidth = 500.0,
  22. double? createSideOverlayWidth,
  23. double? sideOverlayMinWidth = 320.0,
  24. double? sideOverlayMaxWidth,
  25. double? sideOverlayWidthRatio,
  26. double? createSideOverlayMinWidth,
  27. double? createSideOverlayMaxWidth,
  28. double? createSideOverlayWidthRatio,
  29. bool autoExpandFirst = false,
  30. bool autoSelectFirst = false,
  31. bool itemInfoGridInline = true,
  32. bool? expandOnRowTap,
  33. dynamic expandIcon,
  34. dynamic collapseIcon,
  35. bool? rowTapDetails,
  36. bool? onRowTapDetails,
})

Implementation

const TTableDetails({
  this.mode = TTableExpansionMode.bottom,
  this.createMode,
  this.itemTitle,
  this.itemSubTitle,
  this.itemDescription,
  this.itemImageUrl,
  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.autoExpandFirst = false,
  this.autoSelectFirst = false,
  this.itemInfoGridInline = true,
  bool? expandOnRowTap,
  this.expandIcon,
  this.collapseIcon,
  bool? rowTapDetails,
  bool? onRowTapDetails,
}) : expandOnRowTap = expandOnRowTap ?? rowTapDetails ?? onRowTapDetails ?? true;