copyWith method

FdcGridSummaryCellStyle copyWith({
  1. Color? backgroundColor,
  2. TextStyle? textStyle,
  3. Alignment? alignment,
  4. EdgeInsetsGeometry? padding,
})

Creates a copy with selected values replaced.

Implementation

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