copyWith method

CellThemeData copyWith({
  1. TextStyle? textStyle,
  2. EdgeInsets? padding,
  3. double? contentHeight,
  4. Alignment? alignment,
  5. TextOverflow? overflow,
  6. CellNullColor? nullValueColor,
  7. bool? overrideInputDecoration,
})

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

Implementation

CellThemeData copyWith(
    {TextStyle? textStyle,
    EdgeInsets? padding,
    double? contentHeight,
    Alignment? alignment,
    TextOverflow? overflow,
    CellNullColor? nullValueColor,
    bool? overrideInputDecoration}) {
  return CellThemeData(
      textStyle: textStyle ?? this.textStyle,
      padding: padding ?? this.padding,
      contentHeight: contentHeight ?? this.contentHeight,
      alignment: alignment ?? this.alignment,
      overflow: overflow ?? this.overflow,
      nullValueColor: nullValueColor ?? this.nullValueColor,
      overrideInputDecoration:
          overrideInputDecoration ?? this.overrideInputDecoration);
}