useRoundedBorder method

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

Implementation

useRoundedBorder({
  double? rounded,
  Color? color,
  double? width,
  BorderStyle? style,
}) {
  useParent(
    (w) => DecoratedBox(
      decoration: BoxDecoration(
        borderRadius: BorderRadius.all(Radius.circular(rounded ?? 99999)),
        border: Border.all(
          color: color ?? Colors.transparent,
          width: width ?? 0,
          style: style ?? BorderStyle.solid,
        ),
      ),
      child: w,
    ),
  );
}