useRoundedBorder method

void useRoundedBorder({
  1. double? rounded,
  2. Color? color,
  3. double? width,
  4. BorderStyle? style,
})

Implementation

void useRoundedBorder({
  double? rounded,
  Color? color,
  double? width,
  BorderStyle? style,
}) {
  _applyBoxDecorationProperty(
    borderRadius: rounded != null
        ? BorderRadius.all(
            Radius.circular(rounded),
          )
        : null,
    border: Border.all(
      color: color ?? Colors.transparent,
      width: width ?? 0,
      style: style ?? BorderStyle.solid,
    ),
  );
}