copyWith method

FdcGridHeaderStyle copyWith({
  1. Color? backgroundColor,
  2. TextStyle? textStyle,
  3. double? groupHeight,
  4. Color? groupBackgroundColor,
  5. TextStyle? groupTextStyle,
  6. Alignment? groupAlignment,
  7. EdgeInsetsGeometry? groupPadding,
  8. double? groupVerticalSeparatorInset,
  9. double? verticalSeparatorInset,
})

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,
  );
}