captureInstanceLifecycle<S> method

RouteDependency? captureInstanceLifecycle<S>({
  1. String? tag,
})

Captures the current generation for the widget that owns its lifetime.

Implementation

RouteDependency? captureInstanceLifecycle<S>({String? tag}) {
  final factory = _typeSingl[S]?[tag];
  return factory == null
      ? null
      : _routeDependency(factory, factory.generation);
}