navigateTo method
dynamic
navigateTo({
Implementation
navigateTo({
required String path,
bool replace = false,
}) {
if (navigatorKey.currentContext != null) {
if (replace) {
navigatorKey.currentContext!.replace(
path,
);
} else {
(navigatorKey.currentContext!).go(
path,
);
}
}
}