SimpleProvider<T> constructor

const SimpleProvider<T>(
  1. T _value
)

Constructs a new SimpleProvider with the given _value.

Example

final provider = SimpleProvider<int>(123);
print(provider.get()); // 123

Implementation

const SimpleProvider(this._value);