isDebug property

bool get isDebug

A getter that returns a boolean value. When current environment is development a getter returned true.

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

Implementation

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

  return _currentEnvironmentType == EnvironmentType.development;
}