RouterManager class

Constructors

RouterManager()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

notFoundHandler RouteWidgetBuilder?
getter/setter pair
routes Map<String, RouteOptions>
no setter

Static Methods

addBottomSheetPageRoute(String name, RouteWidgetBuilder builder, {InheritedTheme? capturedThemes, Color? backgroundColor, double? elevation, ShapeBorder? shape, Clip? clipBehavior, BoxConstraints? constraints, bool? isScrollControlled, bool? isDismissible, bool? enableDrag, bool? showDragHandle, bool? useSafeArea, Color? barrierColor, String? barrierLabel, bool? useRootNavigator, Offset? anchorPoint, double? scrollControlDisabledMaxHeightRatio = 9.0 / 16.0, TraversalEdgeBehavior? traversalEdgeBehavior, AnimationController? transitionAnimationController}) → void
添加 BottomSheet 路由
addCupertinoPageRoute(String name, RouteWidgetBuilder builder, {bool? maintainState = true, bool? fullscreenDialog = false, bool? allowSnapshotting = true, bool? barrierDismissible = false}) → void
添加 CupertinoPageRoute
addCustomPageRoute(String name, RouteWidgetBuilder builder, {RouteTransitionsBuilder? transitionsBuilder, Duration? transitionDuration = const Duration(milliseconds: 300), Duration? reverseTransitionDuration = const Duration(milliseconds: 300), bool? opaque = true, Color? barrierColor, String? barrierLabel, bool? maintainState = true, bool? fullscreenDialog = false, bool? allowSnapshotting = true, bool? barrierDismissible = false}) → void
添加自定义路由
addDialogPageRoute(String name, RouteWidgetBuilder builder, {CapturedThemes? themes, Color barrierColor = Colors.black54, dynamic barrierDismissible = false, String? barrierLabel, bool? useSafeArea = true, Offset? anchorPoint, TraversalEdgeBehavior? traversalEdgeBehavior}) → void
添加 Dialog 路由
addMaterialPageRoute(String name, RouteWidgetBuilder builder, {bool? maintainState = true, bool? fullscreenDialog = false, bool? allowSnapshotting = true, bool? barrierDismissible = false}) → void
添加 MaterialPageRoute
addRoute(String name, RouteWidgetBuilder builder, {MeteorRouteType? routeType = MeteorRouteType.native}) → void
添加单个路由
addRoutes(Map<String, RouteOptions> routes) → void
添加多个路由
addStandardPageRoute(String name, RouteWidgetBuilder builder, {MeteorTransitionType? transitionType = MeteorTransitionType.inFromRight, bool? opaque = true, Color? barrierColor, String? barrierLabel, bool? maintainState = true, bool? fullscreenDialog = false, bool? allowSnapshotting = true, bool? barrierDismissible = false}) → void
添加标准路由
addTransparentRoute(String name, RouteWidgetBuilder builder) → void
添加透明路由
generateRoute(RouteSettings settings) Route?
生成路由
setUnknownRoute(RouteWidgetBuilder builder) → void
设置未知路由