copyWith method
HeadingStyle
copyWith({
- TextStyle? textStyle,
- EdgeInsetsGeometry? padding,
- bool? showDivider,
- Color? dividerColor,
- double? dividerThickness,
- 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,
);
}