getFlashData method

IconData getFlashData(
  1. FlashMode flashMode
)

Implementation

IconData getFlashData(FlashMode flashMode) {
  switch (flashMode) {
    case FlashMode.always:
      return Icons.flash_on;
    case FlashMode.auto:
      return Icons.flash_auto;
    case FlashMode.off:
      return Icons.flash_off;
    case FlashMode.torch:
      return Icons.highlight;
    default:
      throw ArgumentError('Unknown lens direction');
  }
}