StackedPage<T> constructor

StackedPage<T>({
  1. required RouteData routeData,
  2. required Widget child,
  3. bool fullscreenDialog = false,
  4. bool maintainState = true,
  5. bool opaque = true,
  6. LocalKey? key,
})

Implementation

StackedPage({
  required this.routeData,
  required Widget child,
  this.fullscreenDialog = false,
  this.maintainState = true,
  this.opaque = true,
  LocalKey? key,
})  : _child = child is RouteWrapper
          ? WrappedRoute(
              child: child as RouteWrapper,
            )
          : child,
      super(
        restorationId: routeData.name,
        name: routeData.name,
        arguments: routeData.route.args,
      );