BaseDialog constructor

BaseDialog({
  1. Key? key,
  2. required Widget child,
  3. Color? backgroundColor = Colors.transparent,
  4. Alignment alignment = Alignment.center,
  5. double elevation = 0,
})

Implementation

BaseDialog({
  super.key,
  required Widget child,
  Color? backgroundColor = Colors.transparent,
  Alignment alignment = Alignment.center,
  double elevation = 0,
}) : super(
          insetPadding: EdgeInsets.zero,
          backgroundColor: Colors.transparent,
          elevation: elevation,
          child: Container(
            width: double.infinity,
            height: double.infinity,
            color: backgroundColor,
            alignment: Alignment.center,
            child: child,
          ));