UseDependency<T extends Object>.get constructor

UseDependency<T extends Object>.get({
  1. String? id,
  2. String? debugLabel,
})

Creates and/or gets the instance of the T dependency with/without id.

Implementation

UseDependency.get({
  this.id,
  String? debugLabel,
}) : _debugLabel = debugLabel {
  _instance = Rt.get(id, this);
  _listen();
}