parseCameraLensDirection function

CameraLensDirection parseCameraLensDirection(
  1. String? string
)

Implementation

CameraLensDirection parseCameraLensDirection(String? string) {
  switch (string) {
    case 'front':
      return CameraLensDirection.front;
    case 'back':
      return CameraLensDirection.back;
    case 'external':
      return CameraLensDirection.external;
  }
  throw ArgumentError('Unknown CameraLensDirection value');
}