config property

T get config

A getter that returns the current environment config.

Throws an Exception when Environment.init not called before and Environment not initialized.

Implementation

T get config {
  if (_instance == null) {
    throw Exception('Need call init method first!');
  }

  return _config;
}