copyWith method
- @useResult
- FLabelStyle horizontalStyle(
- FLabelStyle style
- FLabelStyle verticalStyle(
- FLabelStyle style
Returns a copy of this FLabelStyles with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FLabelStyles.horizontalStyle - The horizontal label's style.
- FLabelStyles.verticalStyle - The vertical label's style.
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,
);