Singleton constructor

const Singleton(
  1. Type type, {
  2. Type? as,
  3. Function? dispose,
})

Implementation

const Singleton(this.type, {this.as, this.dispose});