generalDialog<T> method

Future<T> generalDialog<T>(
  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}
)

Api from showGeneralDialog with no context

Implementation

Future<T> generalDialog<T>({
  @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(pageBuilder != null);
  assert(useRootNavigator != null);
  assert(!barrierDismissible || barrierLabel != null);
  return Navigator.of(overlayContext, rootNavigator: useRootNavigator)
      .push<T>(GetDialogRoute<T>(
    pageBuilder: pageBuilder,
    barrierDismissible: barrierDismissible,
    barrierLabel: barrierLabel,
    barrierColor: barrierColor,
    transitionDuration: transitionDuration,
    transitionBuilder: transitionBuilder,
    settings: routeSettings,
  ));
}