instance property
GoRouter
get
instance
Get the active GoRouter instance.
Throws StateError if BloomRouter.create has not been called.
Implementation
static GoRouter get instance {
if (_activeGoRouter == null) {
throw StateError(
'BloomRouter has not been initialized. Call `BloomRouter.create(...)` or initialize via `BloomApp`.',
);
}
return _activeGoRouter!;
}