singleton<T> abstract method

void singleton<T>({
  1. String? name,
  2. required FactoryFunction<T> factory,
  3. bool eager = false,
})

Implementation

void singleton<T>({String? name, required FactoryFunction<T> factory,  bool eager = false});