CustomDialog constructor
CustomDialog({
- required Widget child,
- required BuildContext context,
- Duration? duration,
- Color? barrierColor,
- RouteTransitionsBuilder? transitionsBuilder,
- Gravity? gravity,
- bool? gravityAnimationEnable,
- Function? animatedFunc,
- bool? barrierDismissible,
- 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();
}