showRGeneralDialog<T> function

Future<T> showRGeneralDialog <T>(
  1. {@required RoutePageBuilder pageBuilder,
  2. bool barrierDismissible,
  3. String barrierLabel,
  4. Color barrierColor,
  5. Duration transitionDuration,
  6. RouteTransitionsBuilder transitionBuilder}
)

Implementation

Future<T> showRGeneralDialog<T>({
  @required RoutePageBuilder pageBuilder,
  bool barrierDismissible,
  String barrierLabel,
  Color barrierColor,
  Duration transitionDuration,
  RouteTransitionsBuilder transitionBuilder,
}) {
  assert(pageBuilder != null);
  assert(!barrierDismissible || barrierLabel != null);
  return RRouter.navigator.push<T>(_DialogRoute<T>(
    pageBuilder: pageBuilder,
    barrierDismissible: barrierDismissible,
    barrierLabel: barrierLabel,
    barrierColor: barrierColor,
    transitionDuration: transitionDuration,
    transitionBuilder: transitionBuilder,
  ));
}