copyWith method

HeaderCellThemeData copyWith({
  1. TextStyle? textStyle,
  2. EdgeInsets? padding,
  3. Alignment? alignment,
  4. SortIconColors? sortIconColors,
  5. SortIconBuilder? sortIconBuilder,
  6. Color? sortPriorityColor,
  7. double? sortPrioritySize,
  8. double? sortPriorityGap,
  9. double? height,
  10. double? resizeAreaWidth,
  11. Color? resizeAreaHoverColor,
  12. bool? expandableName,
})

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

Implementation

HeaderCellThemeData copyWith(
    {TextStyle? textStyle,
    EdgeInsets? padding,
    Alignment? alignment,
    SortIconColors? sortIconColors,
    SortIconBuilder? sortIconBuilder,
    Color? sortPriorityColor,
    double? sortPrioritySize,
    double? sortPriorityGap,
    double? height,
    double? resizeAreaWidth,
    Color? resizeAreaHoverColor,
    bool? expandableName}) {
  return HeaderCellThemeData(
      textStyle: textStyle ?? this.textStyle,
      padding: padding ?? this.padding,
      alignment: alignment ?? this.alignment,
      sortIconColors: sortIconColors ?? this.sortIconColors,
      sortIconBuilder: sortIconBuilder ?? this.sortIconBuilder,
      sortPriorityColor: sortPriorityColor ?? this.sortPriorityColor,
      sortPrioritySize: sortPrioritySize ?? this.sortPrioritySize,
      sortPriorityGap: sortPriorityGap ?? this.sortPriorityGap,
      height: height ?? this.height,
      resizeAreaWidth: resizeAreaWidth ?? this.resizeAreaWidth,
      resizeAreaHoverColor: resizeAreaHoverColor ?? this.resizeAreaHoverColor,
      expandableName: expandableName ?? this.expandableName);
}