factory_provider library

Flutter and Provider integration for scoped Factory declarations.

Classes

Factory<T extends Object>
A typed declaration that does not construct its value until resolved.
FactoryChangeNotifier
A notifier with explicit access to its Factory dependencies.
FactoryContainer
Resolves installed declarations independently of a widget tree.
FactoryModule
Declarations installed together, with explicit Provider exposure.
FactoryOverride
A local replacement for a declaration.
FactoryRef
Access to dependencies while constructing or updating an instance.
FactoryRegistry
Marks the composition entrypoint used by the optional generator.
FactoryResolver
Scoped dependency access that can be retained by a constructed instance.
FactoryScope
Installs a FactoryContainer for an application or a nested flow.
FactoryVisitor<R>
Visits a declaration while preserving its value type.
Register
Selects a declaration for a generated module.

Enums

ChangePolicy
The response to an explicitly observed dependency change.
FactoryRuntime
Public runtime facade targeted by generated modules.
Lifetime
The reuse policy of an installed declaration.

Typedefs

FactoryObserver = void Function() Function(Object value, void changed())
Subscribes to an object's state and returns a function that stops listening.

Exceptions / Errors

FactoryCleanupException
All failures collected while releasing a scope.
FactoryInitializationException
A synchronous creation failure with observable cleanup of partially built values.