AsyncFnFactory<T extends Object> class

A CobaltAsyncFactory built from a function.

Constructors

AsyncFnFactory(Future<T> build(CobaltResolver resolver))
Creates a factory that calls build.
const

Properties

build → Future<T> Function(CobaltResolver resolver)
Builds the instance.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

create(CobaltResolver resolver) → Future<T>
Builds a new T, resolving its dependencies from resolver.
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