copyWith method

  1. @useResult
FHeaderStyles copyWith({
  1. FHeaderStyle rootStyle(
    1. FHeaderStyle
    )?,
  2. FHeaderStyle nestedStyle(
    1. FHeaderStyle
    )?,
})

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