copyWith method
- @useResult
- Color? color,
- EdgeInsetsGeometryDelta? padding,
- double? width,
Returns a copy of this FDividerStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FDividerStyle.color - The color of the separating line.
- FDividerStyle.padding - The padding surrounding the separating line.
- FDividerStyle.width - The width (thickness) of the separating line.
Implementation
@useResult
FDividerStyle copyWith({Color? color, EdgeInsetsGeometryDelta? padding, double? width}) => .new(
color: color ?? this.color,
padding: padding?.call(this.padding) ?? this.padding,
width: width ?? this.width,
);