OColorBox constructor

const OColorBox({
  1. Key? key,
  2. required OColorBoxDecoration decoration,
  3. required Size size,
  4. VoidCallback? onPressed,
  5. Widget? child,
})

Creates an instance of OColorBox

Implementation

const OColorBox({
  Key? key,
  required this.decoration,
  required this.size,
  this.onPressed,
  this.child,
}) : super(key: key);