Environment<T>.instance constructor

Environment<T>.instance()

Implementation

factory Environment.instance() {
  if (_instance == null) {
    throw Exception('Need call init method first!');
  }
  return _instance as Environment<T>;
}