showModernFormGeneralDialog function Null safety

Future showModernFormGeneralDialog(
  1. {required RoutePageBuilder pageBuilder,
  2. bool barrierDismissible = false,
  3. String? barrierLabel,
  4. Color barrierColor = const Color(0x80000000),
  5. Duration transitionDuration = const Duration(milliseconds: 200),
  6. RouteTransitionsBuilder? transitionBuilder,
  7. bool useRootNavigator = true,
  8. RouteSettings? routeSettings}
)

Implementation

Future showModernFormGeneralDialog({
  required RoutePageBuilder pageBuilder,
  bool barrierDismissible = false,
  String? barrierLabel,
  Color barrierColor = const Color(0x80000000),
  Duration transitionDuration = const Duration(milliseconds: 200),
  RouteTransitionsBuilder? transitionBuilder,
  bool useRootNavigator = true,
  RouteSettings? routeSettings,
}) {
  assert(!barrierDismissible || barrierLabel != null);
  return ModernFormNavigation.push(RawDialogRoute(
    pageBuilder: pageBuilder,
    barrierDismissible: barrierDismissible,
    barrierLabel: barrierLabel,
    barrierColor: barrierColor,
    transitionDuration: transitionDuration,
    transitionBuilder: transitionBuilder,
    settings: routeSettings,
  ));
}