Future<void> toggleFlash(bool enabled) async { try { await _channel.invokeMethod('toggleFlash', enabled); } on PlatformException catch (e) { log('Failed to toggle flash: ${e.message}'); } }