Future<bool> isFlashAvailable() async { try { return await _cameraChannel.invokeMethod("isFlashAvailable"); } catch (e) { Logger.root.warning(e); } return false; }