fromValue static method

CameraProjection fromValue(
  1. int value
)

Returns the CameraProjection for the given native value.

Throws ArgumentError if value does not correspond to a known entry.

Implementation

static CameraProjection fromValue(int value) => switch (value) {
  0 => CAMERA_PERSPECTIVE,
  1 => CAMERA_ORTHOGRAPHIC,
  _ => throw ArgumentError('Unknown value for $CameraProjection: $value'),
};