ScopedProvider<T> constructor

ScopedProvider<T>(
  1. T _creator(), {
  2. 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;