validFlashModes property
Initialized with all the flash modes for each camera. If a flash mode is not valid, it is removed from the list. 使用每个相机的所有闪光灯模式进行初始化。 如果闪光灯模式无效,则将其从列表中删除。
Implementation
final Map<CameraDescription, List<FlashMode>> validFlashModes =
<CameraDescription, List<FlashMode>>{};