copyWith method Null safety
- {BorderSide? side,
- double? points,
- double? innerRadiusRatio,
- double? pointRounding,
- double? valleyRounding,
- double? rotation,
- double? squash}
override
Returns a copy of this OutlinedBorder that draws its outline with the
specified side
, if side
is non-null.
Implementation
@override
StarBorder copyWith({
BorderSide? side,
double? points,
double? innerRadiusRatio,
double? pointRounding,
double? valleyRounding,
double? rotation,
double? squash,
}) {
return StarBorder(
side: side ?? this.side,
points: points ?? this.points,
rotation: rotation ?? this.rotation,
innerRadiusRatio: innerRadiusRatio ?? this.innerRadiusRatio,
pointRounding: pointRounding ?? this.pointRounding,
valleyRounding: valleyRounding ?? this.valleyRounding,
squash: squash ?? this.squash,
);
}