ServiceInject<T> constructor

ServiceInject<T>(
  1. T creationFunction(), {
  2. bool lazy = true,
})

Implementation

ServiceInject(this.creationFunction, {this.lazy = true}) {
  if (!lazy) _singleton = creationFunction();
}