Dialog constructor

const Dialog({
  1. Key? key,
  2. required Widget child,
  3. String? title,
  4. List<Widget>? actions,
  5. EdgeInsets? padding,
  6. TextStyle? titleStyle,
  7. Color backgroundColor = Colors.white,
})

Creates a Dialog containing child with optional title and actions.

Implementation

const Dialog({
  super.key,
  required this.child,
  this.title,
  this.actions,
  this.padding,
  this.titleStyle,
  this.backgroundColor = Colors.white,
});