GetDialogRoute<T> constructor

GetDialogRoute<T>({
  1. required RoutePageBuilder pageBuilder,
  2. bool barrierDismissible = true,
  3. String? barrierLabel,
  4. Color barrierColor = const Color(0x80000000),
  5. Duration transitionDuration = const Duration(milliseconds: 200),
  6. RouteTransitionsBuilder? transitionBuilder,
  7. RouteSettings? settings,
})

Implementation

GetDialogRoute({
  required RoutePageBuilder pageBuilder,
  bool barrierDismissible = true,
  String? barrierLabel,
  Color barrierColor = const Color(0x80000000),
  Duration transitionDuration = const Duration(milliseconds: 200),
  RouteTransitionsBuilder? transitionBuilder,
  RouteSettings? settings,
})  : widget = pageBuilder,
      _barrierDismissible = barrierDismissible,
      _barrierLabel = barrierLabel,
      _barrierColor = barrierColor,
      _transitionDuration = transitionDuration,
      _transitionBuilder = transitionBuilder,
      super(settings: settings) {
  RouterReportManager.reportCurrentRoute(this);
}