getPreviousPage static method

Widget? getPreviousPage(
  1. BuildContext context
)

Implementation

static Widget? getPreviousPage(BuildContext context) {
  final AppRouterDelegate delegate = _getAppRouterDelegate(context);
  return delegate.pages.getOrNull(delegate.pages.length - 2)?.pageConfiguration.child;
}