Future<bool> setFlashlight() async { openFlashlight = await _controller?.setFlashlight() ?? false; setState(() {}); return openFlashlight; }