showGenDialog<T> method
Future<T?>
showGenDialog<T>({
- required RoutePageBuilder pageBuilder,
- required bool barrierDismissible,
- String? barrierLabel,
- required Color barrierColor,
- required Duration transitionDuration,
- RouteTransitionsBuilder? transitionBuilder,
- 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,
);
}