copyWith method

FdcGridSummaryStyle copyWith({
  1. Color? backgroundColor,
  2. bool? showTopSeparator,
  3. TextStyle? textStyle,
  4. double? height,
  5. EdgeInsetsGeometry? padding,
  6. bool? showVerticalSeparators,
  7. double? verticalSeparatorInset,
})

Creates a copy with selected values replaced.

Implementation

FdcGridSummaryStyle copyWith({
  Color? backgroundColor,
  bool? showTopSeparator,
  TextStyle? textStyle,
  double? height,
  EdgeInsetsGeometry? padding,
  bool? showVerticalSeparators,
  double? verticalSeparatorInset,
}) {
  return FdcGridSummaryStyle(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    showTopSeparator: showTopSeparator ?? this.showTopSeparator,
    textStyle: textStyle ?? this.textStyle,
    height: height ?? this.height,
    padding: padding ?? this.padding,
    showVerticalSeparators:
        showVerticalSeparators ?? this.showVerticalSeparators,
    verticalSeparatorInset:
        verticalSeparatorInset ?? this.verticalSeparatorInset,
  );
}