copyWith method

TableScrollbarThemeData copyWith({
  1. Radius? radius,
  2. double? margin,
  3. double? thickness,
  4. double? borderThickness,
  5. Color? verticalBorderColor,
  6. Color? verticalColor,
  7. Color? pinnedHorizontalBorderColor,
  8. Color? pinnedHorizontalColor,
  9. Color? unpinnedHorizontalBorderColor,
  10. Color? unpinnedHorizontalColor,
  11. Color? thumbColor,
  12. bool? horizontalOnlyWhenNeeded,
  13. bool? verticalOnlyWhenNeeded,
  14. Color? columnDividerColor,
})

Creates a copy of this theme but with the given fields replaced with the new values.

Implementation

TableScrollbarThemeData copyWith({
  Radius? radius,
  double? margin,
  double? thickness,
  double? borderThickness,
  Color? verticalBorderColor,
  Color? verticalColor,
  Color? pinnedHorizontalBorderColor,
  Color? pinnedHorizontalColor,
  Color? unpinnedHorizontalBorderColor,
  Color? unpinnedHorizontalColor,
  Color? thumbColor,
  bool? horizontalOnlyWhenNeeded,
  bool? verticalOnlyWhenNeeded,
  Color? columnDividerColor,
}) {
  return TableScrollbarThemeData(
      radius: radius ?? this.radius,
      margin: margin ?? this.margin,
      thickness: thickness ?? this.thickness,
      borderThickness: borderThickness ?? this.borderThickness,
      verticalBorderColor: verticalBorderColor ?? this.verticalBorderColor,
      verticalColor: verticalColor ?? this.verticalColor,
      pinnedHorizontalBorderColor:
          pinnedHorizontalBorderColor ?? this.pinnedHorizontalBorderColor,
      pinnedHorizontalColor:
          pinnedHorizontalColor ?? this.pinnedHorizontalColor,
      unpinnedHorizontalBorderColor:
          unpinnedHorizontalBorderColor ?? this.unpinnedHorizontalBorderColor,
      unpinnedHorizontalColor:
          unpinnedHorizontalColor ?? this.unpinnedHorizontalColor,
      thumbColor: thumbColor ?? this.thumbColor,
      horizontalOnlyWhenNeeded:
          horizontalOnlyWhenNeeded ?? this.horizontalOnlyWhenNeeded,
      verticalOnlyWhenNeeded:
          verticalOnlyWhenNeeded ?? this.verticalOnlyWhenNeeded,
      columnDividerColor: columnDividerColor ?? this.columnDividerColor);
}