showGenDialog<T> method

Future<T?> showGenDialog<T>({
  1. required RoutePageBuilder pageBuilder,
  2. required bool barrierDismissible,
  3. String? barrierLabel,
  4. required Color barrierColor,
  5. required Duration transitionDuration,
  6. RouteTransitionsBuilder? transitionBuilder,
  7. bool useRootNavigator = true,
  8. RouteSettings? routeSettings,
})

Displays a dialog above the current contents of the app.

Equivalent to widgets.showGeneralDialog.

Implementation

Future<T?> showGenDialog<T>(
    {required widgets.RoutePageBuilder pageBuilder,
    required bool barrierDismissible,
    String? barrierLabel,
    required widgets.Color barrierColor,
    required Duration transitionDuration,
    widgets.RouteTransitionsBuilder? transitionBuilder,
    bool useRootNavigator: true,
    widgets.RouteSettings? routeSettings}) {
  return widgets.showGeneralDialog<T>(
    context: this,
    pageBuilder: pageBuilder,
    barrierDismissible: barrierDismissible,
    barrierLabel: barrierLabel,
    barrierColor: barrierColor,
    transitionDuration: transitionDuration,
    transitionBuilder: transitionBuilder,
    useRootNavigator: useRootNavigator,
    routeSettings: routeSettings,
  );
}