fromValue static method

LibRaw_image_formats fromValue(
  1. int value
)

Implementation

static LibRaw_image_formats fromValue(int value) => switch (value) {
      1 => LIBRAW_IMAGE_JPEG,
      2 => LIBRAW_IMAGE_BITMAP,
      _ =>
        throw ArgumentError("Unknown value for LibRaw_image_formats: $value"),
    };