Flash<T>.dialog constructor

Flash<T>.dialog({
  1. Key? key,
  2. required FlashController controller,
  3. required Widget child,
  4. EdgeInsets margin = EdgeInsets.zero,
  5. BorderRadius? borderRadius,
  6. Color? borderColor,
  7. double borderWidth = 1.0,
  8. Brightness brightness = Brightness.light,
  9. Color backgroundColor = Colors.white,
  10. List<BoxShadow>? boxShadows,
  11. Gradient? backgroundGradient,
  12. GestureTapCallback? onTap,
  13. bool enableDrag = false,
  14. HorizontalDismissDirection? horizontalDismissDirection,
  15. Duration insetAnimationDuration = const Duration(milliseconds: 100),
  16. Curve insetAnimationCurve = Curves.fastOutSlowIn,
  17. AlignmentGeometry? alignment = Alignment.center,
  18. Curve forwardAnimationCurve = Curves.fastOutSlowIn,
  19. Curve reverseAnimationCurve = Curves.fastOutSlowIn,
  20. double? barrierBlur,
  21. Color? barrierColor = Colors.black54,
  22. bool barrierDismissible = true,
})

Implementation

Flash.dialog({
  Key? key,
  required this.controller,
  required this.child,
  this.margin = EdgeInsets.zero,
  this.borderRadius,
  this.borderColor,
  this.borderWidth = 1.0,
  this.brightness = Brightness.light,
  this.backgroundColor = Colors.white,
  this.boxShadows,
  this.backgroundGradient,
  this.onTap,
  this.enableDrag = false,
  this.horizontalDismissDirection,
  this.insetAnimationDuration = const Duration(milliseconds: 100),
  this.insetAnimationCurve = Curves.fastOutSlowIn,
  this.alignment = Alignment.center,
  this.forwardAnimationCurve = Curves.fastOutSlowIn,
  this.reverseAnimationCurve = Curves.fastOutSlowIn,
  this.barrierBlur,
  this.barrierColor = Colors.black54,
  this.barrierDismissible = true,
})  : style = null,
      position = null,
      assert(alignment != null),
      super(key: key);