withName<T> static method

SingletonKey withName<T>([
  1. String? name = null
])

Create SingletonKey for given type T and name

It is equivilent to call SingletonKey constructor

Single.withName<T>(name) == SingletonKey(T, name)

Implementation

static SingletonKey withName<T>([String? name = null]) =>
    SingletonKey(T, name);