NomoModalRoute<T> constructor
NomoModalRoute<T> ({
- required BuildContext context,
- required WidgetBuilder builder,
- String? barrierLabel,
- bool useSafeArea = true,
- RouteSettings? settings,
- Offset? anchorPoint,
- TraversalEdgeBehavior? traversalEdgeBehavior,
- RouteTransitionsBuilder? transitionBuilder,
- Duration transitionDuration = const Duration(milliseconds: 200),
- Color? barrierColor = const Color(0x80000000),
- bool barrierDismissible = true,
Implementation
NomoModalRoute({
required BuildContext context,
required WidgetBuilder builder,
String? barrierLabel,
bool useSafeArea = true,
super.settings,
super.anchorPoint,
super.traversalEdgeBehavior,
super.transitionBuilder,
super.transitionDuration,
super.barrierColor,
super.barrierDismissible,
}) : super(
pageBuilder: (
BuildContext buildContext,
Animation<double> _,
Animation<double> __,
) =>
builder(buildContext),
barrierLabel: barrierLabel ??
MaterialLocalizations.of(context).modalBarrierDismissLabel,
);