addLazySingleton<T> abstract method

void addLazySingleton<T>(
  1. Function constructor, {
  2. String? key,
})

Adds a lazy singleton that will be created on first use and then reused.

Implementation

void addLazySingleton<T>(Function constructor, {String? key});