INNER CODE UNIT · Dart

getApplicationProfile

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

  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
  static bool isWeb() => kIsWeb;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…