BackdropModalRouteBase<T> constructor
BackdropModalRouteBase<T> ({
- Color? backgroundColor,
- double? topPadding,
- double? barrierOpacity,
- Duration? transitionDurationVal,
- bool? isOpaque,
- bool? canBarrierDismiss,
- Color? barrierColorVal,
- String? barrierLabelVal,
- bool? shouldMaintainState,
- ShapeBorder? backdropShape,
- bool? left,
- bool? top,
- bool? right,
- bool? bottom,
- EdgeInsets? minimum,
- bool? maintainBottomViewPadding,
- BuildBlockModalTransitions? buildBlockModalTransitions,
- 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;
}