getShapeBorder static method
OutlinedBorder
getShapeBorder({
- Color? color,
- double? width,
- BorderRadiusGeometry? radius,
- BorderStyle? style,
get shape border
Implementation
static OutlinedBorder getShapeBorder({
Color? color,
double? width,
BorderRadiusGeometry? radius,
BorderStyle? style,
}) {
final BorderSide side = BorderSide(
color: color ?? Color(4278190080),
width: width ?? 1.0,
style: style ?? BorderStyle.solid);
return radius == null
? StadiumBorder(side: side)
: RoundedRectangleBorder(
borderRadius: radius,
side: side,
);
}