getApplicationProfile static method

ApplicationProfile getApplicationProfile()

Get current application profile (release, debug or profile).

Implementation

static ApplicationProfile getApplicationProfile() {
  if (kReleaseMode) {
    return ApplicationProfile.release;
  }
  if (kDebugMode) {
    return ApplicationProfile.debug;
  }
  if (kProfileMode) {
    return ApplicationProfile.profile;
  }

  /// Fallback
  return ApplicationProfile.debug;
}