copyWith method
Returns a copy of this FHeaderStyles with the given properties replaced.
Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.
rootStyle
The root header's style.
nestedStyle
The nested header's style.
Implementation
@useResult
FHeaderStyles copyWith({
FHeaderStyle Function(FHeaderStyle)? rootStyle,
FHeaderStyle Function(FHeaderStyle)? nestedStyle,
}) => FHeaderStyles(
rootStyle: rootStyle != null ? rootStyle(this.rootStyle) : this.rootStyle,
nestedStyle: nestedStyle != null ? nestedStyle(this.nestedStyle) : this.nestedStyle,
);