testNativeCrash method
测试原生崩溃 (仅用于调试)
Implementation
Future<void> testNativeCrash() async {
if (!kDebugMode) {
debugPrint('⚠️ Test crash is only available in debug mode');
return;
}
try {
await _channel.invokeMethod('testCrash');
} catch (e) {
debugPrint('🧪 Test crash triggered: $e');
}
}