copyWith method

HeaderThemeData copyWith({
  1. bool? visible,
  2. Color? color,
  3. double? bottomBorderHeight,
  4. Color? bottomBorderColor,
  5. Color? columnDividerColor,
})

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

Implementation

HeaderThemeData copyWith(
    {bool? visible,
    Color? color,
    double? bottomBorderHeight,
    Color? bottomBorderColor,
    Color? columnDividerColor}) {
  return HeaderThemeData(
      visible: visible ?? this.visible,
      color: color ?? this.color,
      bottomBorderHeight: bottomBorderHeight ?? this.bottomBorderHeight,
      bottomBorderColor: bottomBorderColor ?? this.bottomBorderColor,
      columnDividerColor: columnDividerColor ?? this.columnDividerColor);
}