copyWith method
Returns a copy of this FDividerStyle with the given properties replaced.
Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.
color
The color of the separating line.
padding
The padding surrounding the separating line. Defaults to the appropriate padding in defaultPadding.
This property can be used to indent the start and end of the separating line.
width
The width (thickness) of the separating line. Defaults to 1.
Contract
Throws AssertionError if:
width
<= 0.0width
is Nan
Implementation
@useResult
FDividerStyle copyWith({Color? color, EdgeInsetsGeometry? padding, double? width}) =>
FDividerStyle(color: color ?? this.color, padding: padding ?? this.padding, width: width ?? this.width);