put method

T put({
  1. String? tag,
  2. bool? isPermanent,
  3. ZenScope? scope,
})

Register this instance in the DI container

Implementation

T put({
  String? tag,
  bool? isPermanent,
  ZenScope? scope,
}) {
  if (scope != null) {
    return scope.put<T>(
      this,
      tag: tag,
      isPermanent: isPermanent ?? false,
    );
  } else {
    return Zen.put<T>(this, tag: tag, isPermanent: isPermanent);
  }
}