CustomDialog constructor

CustomDialog({
  1. required Widget child,
  2. required BuildContext context,
  3. Duration? duration,
  4. Color? barrierColor,
  5. RouteTransitionsBuilder? transitionsBuilder,
  6. Gravity? gravity,
  7. bool? gravityAnimationEnable,
  8. Function? animatedFunc,
  9. bool? barrierDismissible,
  10. EdgeInsets? margin,
})

Implementation

CustomDialog({
  required Widget child,
  required BuildContext context,
  Duration? duration,
  Color? barrierColor,
  RouteTransitionsBuilder? transitionsBuilder,
  Gravity? gravity,
  bool? gravityAnimationEnable,
  Function? animatedFunc,
  bool? barrierDismissible,
  EdgeInsets? margin,
})  : _child = child,
      _context = context,
      _gravity = gravity,
      _gravityAnimationEnable = gravityAnimationEnable,
      _duration = duration,
      _barrierColor = barrierColor,
      _animatedFunc = animatedFunc,
      _transitionsBuilder = transitionsBuilder,
      _barrierDismissible = barrierDismissible,
      margin = margin {
  this.show();
}