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