TabState.ofAppRouteMatch constructor
TabState.ofAppRouteMatch(
- AppRouteMatch<
dynamic, RouteParams> match, { - required IconData tabIcon,
- required int tabIndex,
- bool isDesktop = true,
- required GlobalKey<
NavigatorState> key,
Implementation
factory TabState.ofAppRouteMatch(AppRouteMatch match,
{required IconData tabIcon,
required int tabIndex,
bool isDesktop = true,
required GlobalKey<NavigatorState> key}) {
return TabState(
route: match.route!,
tabLabel: match.route!.routeTitle(),
tabIcon: tabIcon,
isDesktop: isDesktop,
navigatorKey: key,
tabIndex: tabIndex,
);
}