StackRouterInheritedData constructor

const StackRouterInheritedData({
  1. required List<String> routeHistory,
  2. required void popRoute([
    1. String route
    ]),
  3. required void pushRoute(
    1. String route
    ),
  4. required void switchRoute(
    1. String route
    ),
  5. required void showSnackBar({
    1. String? route,
    2. required StackRouterSnackBar snackBar,
    }),
  6. required void clearSnackBars({
    1. String? route,
    }),
  7. required void hideSnackBar({
    1. String? route,
    }),
  8. required dynamic addMessenger({
    1. required StackRouterScaffoldMessenger messenger,
    2. required String route,
    }),
  9. required dynamic child,
  10. String? route,
  11. void onPop()?,
  12. dynamic key,
})

Implementation

const StackRouterInheritedData({
  required this.routeHistory,
  required this.popRoute,
  required this.pushRoute,
  required this.switchRoute,
  required this.showSnackBar,
  required this.clearSnackBars,
  required this.hideSnackBar,
  required this.addMessenger,
  required child,
  this.route,
  this.onPop,
  key,
}) : super(key: key, child: child);