ScopedProvider<T> constructor
ScopedProvider<T> (
- T _creator(), {
- bool singleton = false,
Creates a scoped provider with a creator function.
If singleton
is true, the created instance will be cached.
Implementation
ScopedProvider(this._creator, {bool singleton = false})
: _singleton = singleton;