copyWith method

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

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

Consider using the CLI to generate a style.

Parameters

Implementation

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