get<T> method

T get<T>()

Implementation

T get<T>() {
  return switch (instanceScope) {
    null => _create(),
    _ => (value ??= _create()) as T,
  };
}