isCompatibleWithCurrentBuild property

bool get isCompatibleWithCurrentBuild

Implementation

bool get isCompatibleWithCurrentBuild {
  switch (this) {
    case SDKEnvironment.SDK_ENVIRONMENT_DEVELOPMENT:
    case SDKEnvironment.SDK_ENVIRONMENT_STAGING:
      return true;
    case SDKEnvironment.SDK_ENVIRONMENT_PRODUCTION:
      var isDebug = false;
      assert(() {
        isDebug = true;
        return true;
      }());
      return !isDebug;
    default:
      return false;
  }
}