isDeveloperModeEnabled property
Detecta si el modo desarrollador está habilitado (Android)
Implementation
static Future<bool> get isDeveloperModeEnabled async {
try {
if (!Platform.isAndroid) {
return false;
}
// Intentar detección nativa primero
bool? nativeResult = await _tryNativeDeveloperMode();
if (nativeResult != null) {
return nativeResult;
}
// En Android, siempre hay algún nivel de modo desarrollador en debug
return kDebugMode;
} catch (e) {
return false;
}
}