switchChild method
Navigates to the child at the given index.
Implementation
void switchChild(int index) {
final navigatorKey = key! as GlobalKey<DuckShellState>;
final shellState = navigatorKey.currentState;
shellState?.switchChild(index);
}
Navigates to the child at the given index.
void switchChild(int index) {
final navigatorKey = key! as GlobalKey<DuckShellState>;
final shellState = navigatorKey.currentState;
shellState?.switchChild(index);
}