getShapeBorder static method

OutlinedBorder getShapeBorder({
  1. Color? color,
  2. double? width,
  3. BorderRadiusGeometry? radius,
  4. 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,
        );
}