copyWith method

HeadingStyle copyWith({
  1. TextStyle? textStyle,
  2. EdgeInsetsGeometry? padding,
  3. bool? showDivider,
  4. Color? dividerColor,
  5. double? dividerThickness,
  6. EdgeInsetsGeometry? dividerPadding,
})

A copy with the given fields replaced.

Implementation

HeadingStyle copyWith({
  TextStyle? textStyle,
  EdgeInsetsGeometry? padding,
  bool? showDivider,
  Color? dividerColor,
  double? dividerThickness,
  EdgeInsetsGeometry? dividerPadding,
}) {
  return HeadingStyle(
    textStyle: textStyle ?? this.textStyle,
    padding: padding ?? this.padding,
    showDivider: showDivider ?? this.showDivider,
    dividerColor: dividerColor ?? this.dividerColor,
    dividerThickness: dividerThickness ?? this.dividerThickness,
    dividerPadding: dividerPadding ?? this.dividerPadding,
  );
}