copyWith method
Creates a copy with selected values replaced.
Implementation
FdcGridHeaderStyle copyWith({
Color? backgroundColor,
TextStyle? textStyle,
double? groupHeight,
Color? groupBackgroundColor,
TextStyle? groupTextStyle,
Alignment? groupAlignment,
EdgeInsetsGeometry? groupPadding,
double? groupVerticalSeparatorInset,
double? verticalSeparatorInset,
}) {
return FdcGridHeaderStyle(
backgroundColor: backgroundColor ?? this.backgroundColor,
textStyle: textStyle ?? this.textStyle,
groupHeight: groupHeight ?? this.groupHeight,
groupBackgroundColor: groupBackgroundColor ?? this.groupBackgroundColor,
groupTextStyle: groupTextStyle ?? this.groupTextStyle,
groupAlignment: groupAlignment ?? this.groupAlignment,
groupPadding: groupPadding ?? this.groupPadding,
groupVerticalSeparatorInset:
groupVerticalSeparatorInset ?? this.groupVerticalSeparatorInset,
verticalSeparatorInset:
verticalSeparatorInset ?? this.verticalSeparatorInset,
);
}