ModalContainer constructor

const ModalContainer({
  1. Key? key,
  2. bool modal = true,
  3. bool surfaceClip = true,
  4. BorderRadiusGeometry borderRadius = BorderRadius.zero,
  5. Color barrierColor = const Color.fromRGBO(0, 0, 0, 0.8),
  6. EdgeInsetsGeometry padding = EdgeInsets.zero,
  7. Animation<double>? fadeAnimation,
  8. required Widget child,
})

Implementation

const ModalContainer({
  super.key,
  this.modal = true,
  this.surfaceClip = true,
  this.borderRadius = BorderRadius.zero,
  this.barrierColor = const Color.fromRGBO(0, 0, 0, 0.8),
  this.padding = EdgeInsets.zero,
  this.fadeAnimation,
  required this.child,
});