onRoundedWhiteContainer method

Container onRoundedWhiteContainer({
  1. Color? bgColor,
})

Wraps this widget in a rounded white Container.

Parameters:

  • bgColor: Optional background color. Defaults to white if not specified.

The container has a border radius of 10 on all corners.

Implementation

Container onRoundedWhiteContainer({Color? bgColor}) {
  return Container(
      decoration: BoxDecoration(
          color: bgColor ?? Colors.white,
          borderRadius: BorderRadius.all(Radius.circular(10))),
      child: this);
}