copyWith method

  1. @useResult
FLabelStyles copyWith({
  1. FLabelStyle horizontalStyle(
    1. FLabelStyle
    )?,
  2. FLabelStyle verticalStyle(
    1. FLabelStyle
    )?,
})

Returns a copy of this FLabelStyles with the given properties replaced.

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

horizontalStyle

The horizontal label's style.

verticalStyle

The vertical label's style.

Implementation

@useResult
FLabelStyles copyWith({
  FLabelStyle Function(FLabelStyle)? horizontalStyle,
  FLabelStyle Function(FLabelStyle)? verticalStyle,
}) => FLabelStyles(
  horizontalStyle: horizontalStyle != null ? horizontalStyle(this.horizontalStyle) : this.horizontalStyle,
  verticalStyle: verticalStyle != null ? verticalStyle(this.verticalStyle) : this.verticalStyle,
);