INNER CODE UNIT · Dart

ApplicationProfileManager

jhomlala/catcher · lib/core/application_profile_manager.dart:5

class ApplicationProfileManager {
  /// Get current application profile (release, debug or profile).
  static ApplicationProfile getApplicationProfile() {
    if (kReleaseMode) {
      return ApplicationProfile.release;
    }
    if (kDebugMode) {
      return ApplicationProfile.debug;
    }
    if (kProfileMode) {
      return ApplicationProfile.profile;
    }

    ///Fallback
    return ApplicationProfile.debug;
  }

  /// Check if current platform is web

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…