copyWith method
- @useResult
- FDividerStyle horizontalStyle()?,
- FDividerStyle verticalStyle()?,
Returns a copy of this FDividerStyles 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 divider's style.
verticalStyle
The vertical divider's style.
Implementation
@useResult
FDividerStyles copyWith({
FDividerStyle Function(FDividerStyle)? horizontalStyle,
FDividerStyle Function(FDividerStyle)? verticalStyle,
}) => FDividerStyles(
horizontalStyle: horizontalStyle != null ? horizontalStyle(this.horizontalStyle) : this.horizontalStyle,
verticalStyle: verticalStyle != null ? verticalStyle(this.verticalStyle) : this.verticalStyle,
);