r_router library Null safety

Classes

CustomPageRoute<T>
Lock
PopupMenuButton<T>
Displays a menu when pressed and calls onSelected when the menu is dismissed because an item was selected. The value passed to onSelected is the value of the selected menu item. [...]
RRouter
RRouterInterceptor
interceptor if you want to interceptor router
RRouterInterceptors
RRouterInterceptorWrapper
interceptor wrapper
RRouterObserver
route observer
RRouterPageBuilderType
RRouterProvider
use to RRouterPlugin.
SearchDelegate<T>
Delegate for showSearch to define the content of the search page. [...]

Functions

showRAboutDialog({String? applicationName, String? applicationVersion, Widget? applicationIcon, String? applicationLegalese, List<Widget>? children, bool useRootNavigator = true, RouteSettings? routeSettings}) → void
showRCupertinoDialog<T>({required WidgetBuilder builder, String? barrierLabel, bool useRootNavigator = true, bool barrierDismissible = false, RouteSettings? routeSettings}) Future<T?>
showRCupertinoModalPopup<T>({required WidgetBuilder builder, ImageFilter? filter, Color barrierColor = kCupertinoModalBarrierColor, bool barrierDismissible = true, bool useRootNavigator = true, bool? semanticsDismissible, RouteSettings? routeSettings}) Future<T?>
Shows a modal iOS-style popup that slides up from the bottom of the screen. [...]
showRDatePicker({required DateTime initialDate, required DateTime firstDate, required DateTime lastDate, DateTime? currentDate, DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar, SelectableDayPredicate? selectableDayPredicate, String? helpText, String? cancelText, String? confirmText, Locale? locale, bool useRootNavigator = true, RouteSettings? routeSettings, TextDirection? textDirection, TransitionBuilder? builder, DatePickerMode initialDatePickerMode = DatePickerMode.day, String? errorFormatText, String? errorInvalidText, String? fieldHintText, String? fieldLabelText}) Future<DateTime?>
Shows a dialog containing a Material Design date picker. [...]
showRDateRangePicker({DateTimeRange? initialDateRange, required DateTime firstDate, required DateTime lastDate, DateTime? currentDate, DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar, String? helpText, String? cancelText, String? confirmText, String? saveText, String? errorFormatText, String? errorInvalidText, String? errorInvalidRangeText, String? fieldStartHintText, String? fieldEndHintText, String? fieldStartLabelText, String? fieldEndLabelText, Locale? locale, bool useRootNavigator = true, RouteSettings? routeSettings, TextDirection? textDirection, TransitionBuilder? builder}) Future<DateTimeRange?>
showRDialog<T>({required WidgetBuilder builder, bool barrierDismissible = true, Color? barrierColor = Colors.black54, String? barrierLabel, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings? routeSettings}) Future<T?>
showRGeneralDialog<T extends Object?>({required RoutePageBuilder pageBuilder, bool barrierDismissible = false, String? barrierLabel, Color barrierColor = const Color(2147483648), Duration transitionDuration = const Duration(milliseconds: 200), RouteTransitionsBuilder? transitionBuilder, bool useRootNavigator = true, RouteSettings? routeSettings}) Future<T?>
showRLicensePage({String? applicationName, String? applicationVersion, Widget? applicationIcon, String? applicationLegalese, bool useRootNavigator = false}) → void
Displays a LicensePage, which shows licenses for software used by the application. [...]
showRMenu<T>({required RelativeRect position, required List<PopupMenuEntry<T>> items, T? initialValue, double? elevation, String? semanticLabel, ShapeBorder? shape, Color? color, bool useRootNavigator = false}) Future<T?>
Show a popup menu that contains the items at position. [...]
showRModalBottomSheet<T>({required WidgetBuilder builder, Color? backgroundColor, double? elevation, ShapeBorder? shape, Clip? clipBehavior, Color? barrierColor, bool isScrollControlled = false, bool useRootNavigator = false, bool isDismissible = true, bool enableDrag = true, RouteSettings? routeSettings, AnimationController? transitionAnimationController}) Future<T?>
Shows a modal material design bottom sheet. [...]
showRSearch<T>({required SearchDelegate<T> delegate, String query = ''}) Future<T?>
Shows a full screen search page and returns the search result selected by the user when the page is closed. [...]
showRTimePicker({required TimeOfDay initialTime, TransitionBuilder? builder, bool useRootNavigator = true, TimePickerEntryMode initialEntryMode = TimePickerEntryMode.dial, String? cancelText, String? confirmText, String? helpText, RouteSettings? routeSettings}) Future<TimeOfDay?>
Shows a dialog containing a material design time picker. [...]
showTimePicker({required BuildContext context, required TimeOfDay initialTime, TransitionBuilder? builder, bool useRootNavigator = true, TimePickerEntryMode initialEntryMode = TimePickerEntryMode.dial, String? cancelText, String? confirmText, String? helpText, RouteSettings? routeSettings}) Future<TimeOfDay?>
Shows a dialog containing a material design time picker. [...]
transResult({String? path, Map<String, dynamic>? arguments, bool? replace, bool? clearTrace, bool? isSingleTop}) Future
transform result

Enums

TimePickerEntryMode
Interactive input mode of the time picker dialog. [...]

Typedefs

EnqueueCallback = FutureOr Function()
PopupMenuCanceled = void Function()
Signature for the callback invoked when a PopupMenuButton is dismissed without selecting an item. [...]
PopupMenuItemBuilder<T> = List<PopupMenuEntry<T>> Function(BuildContext context)
Signature used by PopupMenuButton to lazily construct the items shown when the button is pressed. [...]
PopupMenuItemSelected<T> = void Function(T value)
Signature for the callback invoked when a menu item is selected. The argument is the value of the PopupMenuItem that caused its menu to be dismissed. [...]
RRouterNotFountPage = Widget Function(String? path)
not fount page widget
RRouterRequestCallback = RouteSettings Function(RouteSettings settings)
RRouterWidgetBuilder = Widget Function(dynamic params)
widget builder

Exceptions / Errors

RRouterNotFoundException
not found route exception