lite_ref_core library
A lightweight dependency injection package for dart and flutter with support for overriding for testing.
Classes
-
AsyncSingletonRef<
T> - A AsyncSingletonRef is a reference with an asynchronous factory/creation function that always return the same instance.
-
AsyncTransientRef<
T> - A AsyncTransientRef is a reference with an asynchronous factory/creation function that always return a new instance.
- Ref
- abstract class for creating refs.
-
SingletonRef<
T> - A SingletonRef is a reference that always returns a new instance.
-
TransientRef<
T> - A TransientRef is a reference that always return a new instance.
Typedefs
-
AsyncFactory<
T> = Future< T> Function() -
A function that creates an instance of
Tasynchronousloy.