copyWith method
- @useResult
- FHeaderStyle rootStyle(
- FHeaderStyle style
- FHeaderStyle nestedStyle(
- FHeaderStyle style
Returns a copy of this FHeaderStyles with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FHeaderStyles.rootStyle - The root header's style.
- FHeaderStyles.nestedStyle - The nested header's style.
Implementation
@useResult
FHeaderStyles copyWith({
FHeaderStyle Function(FHeaderStyle style)? rootStyle,
FHeaderStyle Function(FHeaderStyle style)? nestedStyle,
}) => FHeaderStyles(
rootStyle: rootStyle != null ? rootStyle(this.rootStyle) : this.rootStyle,
nestedStyle: nestedStyle != null ? nestedStyle(this.nestedStyle) : this.nestedStyle,
);