rounded method

Widget rounded({
  1. Color? background,
  2. EdgeInsets? padding,
  3. double borderRadius = 8,
})

Implementation

Widget rounded({Color? background, EdgeInsets? padding, double borderRadius = 8}) => Container(
      padding: padding ?? const EdgeInsets.symmetric(vertical: 2, horizontal: 6),
      decoration: BoxDecoration(color: background ?? Colors.deepPurpleAccent, borderRadius: BorderRadius.circular(borderRadius)),
      child: this,
    );