BackdropModalRouteBase<T> constructor

BackdropModalRouteBase<T>({
  1. Color? backgroundColor,
  2. double? topPadding,
  3. double? barrierOpacity,
  4. Duration? transitionDurationVal,
  5. bool? isOpaque,
  6. bool? canBarrierDismiss,
  7. Color? barrierColorVal,
  8. String? barrierLabelVal,
  9. bool? shouldMaintainState,
  10. ShapeBorder? backdropShape,
  11. bool? left,
  12. bool? top,
  13. bool? right,
  14. bool? bottom,
  15. EdgeInsets? minimum,
  16. bool? maintainBottomViewPadding,
  17. BuildBlockModalTransitions? buildBlockModalTransitions,
  18. bool? isSlideTransitionDefault,
})

Implementation

BackdropModalRouteBase({
  this.backgroundColor,
  this.topPadding,
  this.barrierOpacity,
  this.transitionDurationVal,
  this.isOpaque,
  this.canBarrierDismiss,
  this.barrierColorVal,
  this.barrierLabelVal,
  this.shouldMaintainState,
  this.backdropShape,
  this.left,
  this.top,
  this.right,
  this.bottom,
  this.minimum,
  this.maintainBottomViewPadding,
  this.buildBlockModalTransitions,
  this.isSlideTransitionDefault,
}) {
  backgroundColor ??= Colors.white;
  topPadding ??= DEFAULT_BACKDROP_TOP_PADDING;
  barrierOpacity ??= 0.5;
  transitionDurationVal ??= const Duration(milliseconds: 500);
  isOpaque ??= false;
  canBarrierDismiss ??= true;
  barrierColorVal ??= Colors.black.withOpacity(barrierOpacity!);
  shouldMaintainState ??= true;
  backdropShape ??= RoundedRectangleBorder(
    borderRadius: BorderRadius.only(
      topLeft: Radius.circular(15),
      topRight: Radius.circular(15),
    ),
  );
  left ??= true;
  top ??= true;
  right ??= true;
  bottom ??= true;
  minimum ??= EdgeInsets.only(
    top: topPadding!,
  );
  maintainBottomViewPadding ??= false;
  isSlideTransitionDefault ??= true;
}