BreadcrumbSetup class

Entry point for wiring up the breadcrumb framework.

Call register once during app startup (before runApp). If it is never called, BreadcrumbNavigation renders nothing — no crash, no warning.

BreadcrumbSetup.register(
  entityNameResolver: MyEntityResolver(),
  entityTypeResolver: MyTypeResolver(),
  excludedSegments: ['portal-root'],
);

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

isRegistered bool
Whether register has been called.
no setter

Static Methods

register({required BreadcrumbEntityNameResolver entityNameResolver, required EntityTypeResolver entityTypeResolver, List<String> excludedSegments = const [], int minimumDepthToShow = 3}) BreadcrumbService
Registers all breadcrumb services in GetIt and returns the configured BreadcrumbService. Throws a StateError if called more than once.