singleton<T extends Object> function

void singleton<T extends Object>(
  1. T instance, {
  2. String? named,
})

Implementation

void singleton<T extends Object>(
  T instance, {
  String? named,
}) =>
    DIManager.singleton<T>(
      instance,
      named: named,
    );