copyWith method

FdcGridCellStyle copyWith({
  1. TextStyle? textStyle,
  2. Color? backgroundColor,
  3. Alignment? alignment,
})

Creates a copy with selected values replaced.

Implementation

FdcGridCellStyle copyWith({
  TextStyle? textStyle,
  Color? backgroundColor,
  Alignment? alignment,
}) {
  return FdcGridCellStyle(
    textStyle: textStyle ?? this.textStyle,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    alignment: alignment ?? this.alignment,
  );
}