copyWith method

FdcGridHeaderFilterStyle copyWith({
  1. Color? backgroundColor,
  2. double? height,
  3. Color? focusedBorderColor,
  4. Color? unfocusedBorderColor,
  5. double? focusedBorderWidth,
  6. double? unfocusedBorderWidth,
  7. Color? focusedLabelColor,
  8. Color? unfocusedLabelColor,
  9. TextStyle? labelTextStyle,
  10. Color? filterIconColor,
  11. Color? activeFilterIconColor,
  12. Color? clearIconColor,
})

Creates a copy with selected values replaced.

Implementation

FdcGridHeaderFilterStyle copyWith({
  Color? backgroundColor,
  double? height,
  Color? focusedBorderColor,
  Color? unfocusedBorderColor,
  double? focusedBorderWidth,
  double? unfocusedBorderWidth,
  Color? focusedLabelColor,
  Color? unfocusedLabelColor,
  TextStyle? labelTextStyle,
  Color? filterIconColor,
  Color? activeFilterIconColor,
  Color? clearIconColor,
}) {
  return FdcGridHeaderFilterStyle(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    height: height ?? this.height,
    focusedBorderColor: focusedBorderColor ?? this.focusedBorderColor,
    unfocusedBorderColor: unfocusedBorderColor ?? this.unfocusedBorderColor,
    focusedBorderWidth: focusedBorderWidth ?? this.focusedBorderWidth,
    unfocusedBorderWidth: unfocusedBorderWidth ?? this.unfocusedBorderWidth,
    focusedLabelColor: focusedLabelColor ?? this.focusedLabelColor,
    unfocusedLabelColor: unfocusedLabelColor ?? this.unfocusedLabelColor,
    labelTextStyle: labelTextStyle ?? this.labelTextStyle,
    filterIconColor: filterIconColor ?? this.filterIconColor,
    activeFilterIconColor:
        activeFilterIconColor ?? this.activeFilterIconColor,
    clearIconColor: clearIconColor ?? this.clearIconColor,
  );
}