factory_annotation library Null safety

Classes

ContextKey
DefaultValueBulder
Factory
FactoryConstructor
FactoryContext
FakerProvider
ObjectBuilder<T>
ObjectFactory<TModel>
ObjectReadonlyBuilder<T>
ValueProvider

Mixins

FakerProviderMixin

Constants

defaultKey → const ContextKey
factoryConstuctor → const FactoryConstructor

Functions

fromValue<T>(T value) ValueBuilder<T>

Typedefs

ValueBuilder<T> = T Function(FactoryContext context, ContextKey key)
ValueGetter<T> = T Function()

Exceptions / Errors

InvalidBuilderStateException
MissingValueProviderException
MissingValueProviderException thrown when generated code tries to access valueProvider, but not it returns null.
ObjectBuilderException
ObjectFactoryException