performanceDashboardRoute function

MaterialPageRoute<void> performanceDashboardRoute({
  1. PerformanceMonitorStore? store,
})

A route that shows the dashboard and carries performanceDashboardRouteName.

PerformanceRouteObserver ignores that name by default, so opening the dashboard does not restart the measurement it is displaying.

Implementation

MaterialPageRoute<void> performanceDashboardRoute({
  PerformanceMonitorStore? store,
}) {
  return MaterialPageRoute<void>(
    settings: const RouteSettings(name: performanceDashboardRouteName),
    builder: (_) => PerformanceDashboardPage(store: store),
  );
}