copyWith method
- @useResult
- FDividerStyle horizontalStyle(
- FDividerStyle style
- FDividerStyle verticalStyle(
- FDividerStyle style
Returns a copy of this FDividerStyles with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FDividerStyles.horizontalStyle - The horizontal divider's style.
- FDividerStyles.verticalStyle - The vertical divider's style.
Implementation
@useResult
FDividerStyles copyWith({
FDividerStyle Function(FDividerStyle style)? horizontalStyle,
FDividerStyle Function(FDividerStyle style)? verticalStyle,
}) => FDividerStyles(
horizontalStyle: horizontalStyle != null ? horizontalStyle(this.horizontalStyle) : this.horizontalStyle,
verticalStyle: verticalStyle != null ? verticalStyle(this.verticalStyle) : this.verticalStyle,
);