NomoModalRoute<T> constructor

NomoModalRoute<T>({
  1. required BuildContext context,
  2. required WidgetBuilder builder,
  3. String? barrierLabel,
  4. bool useSafeArea = true,
  5. RouteSettings? settings,
  6. Offset? anchorPoint,
  7. TraversalEdgeBehavior? traversalEdgeBehavior,
  8. RouteTransitionsBuilder? transitionBuilder,
  9. Duration transitionDuration = const Duration(milliseconds: 200),
  10. Color? barrierColor = const Color(0x80000000),
  11. 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,
      );