copyWith method
- @useResult
- Color? color,
- BorderRadiusGeometry? borderRadius,
- double? width,
- double? spacing,
Returns a copy of this FFocusedOutlineStyle 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 outline's color.
borderRadius
The border radius.
width
The outline's width. Defaults to 1.
Contract
Must be > 0.
spacing
The spacing between the outline and the outlined widget. Defaults to 3.
Implementation
@useResult
FFocusedOutlineStyle copyWith({Color? color, BorderRadiusGeometry? borderRadius, double? width, double? spacing}) =>
FFocusedOutlineStyle(
color: color ?? this.color,
borderRadius: borderRadius ?? this.borderRadius,
width: width ?? this.width,
spacing: spacing ?? this.spacing,
);