PlatformRouteInformationProviderRaiiExt extension

Extension for managing PlatformRouteInformationProvider lifecycle.

Example:

final routeProvider = PlatformRouteInformationProvider(
  initialRouteInformation: RouteInformation(location: '/'),
).withLifecycle(this, debugLabel: 'RouteProvider');
on

Methods

withLifecycle(RaiiLifecycleAware lifecycleAware, {String? debugLabel}) PlatformRouteInformationProvider

Available on PlatformRouteInformationProvider, provided by the PlatformRouteInformationProviderRaiiExt extension

Attaches this route information provider to a RaiiLifecycleAware object.