copyWith method

ColumnHeader copyWith({
  1. bool empty()?,
  2. String? text()?,
  3. AlignmentGeometry alignment()?,
  4. TextAlign textAlign()?,
  5. bool showFilter()?,
  6. bool showOrderBy()?,
  7. TextStyle? textStyle()?,
  8. Color? backgroundColor()?,
  9. Color? foregroundColor()?,
})

Implementation

ColumnHeader copyWith({
  bool Function()? empty,
  String? Function()? text,
  AlignmentGeometry Function()? alignment,
  TextAlign Function()? textAlign,
  bool Function()? showFilter,
  bool Function()? showOrderBy,
  TextStyle? Function()? textStyle,
  Color? Function()? backgroundColor,
  Color? Function()? foregroundColor,
}) {
  return ColumnHeader(
    empty: empty == null ? this.empty : empty(),
    text: text == null ? this.text : text(),
    alignment: alignment == null ? this.alignment : alignment(),
    textAlign: textAlign == null ? this.textAlign : textAlign(),
    showFilter: showFilter == null ? this.showFilter : showFilter(),
    showOrderBy: showOrderBy == null ? this.showFilter : showOrderBy(),
    textStyle: textStyle == null ? this.textStyle : textStyle(),
    backgroundColor:
        backgroundColor == null ? this.backgroundColor : backgroundColor(),
    foregroundColor:
        foregroundColor == null ? this.foregroundColor : foregroundColor(),
  );
}