fromValue static method

resvg_image_rendering fromValue(
  1. int value
)

Implementation

static resvg_image_rendering fromValue(int value) => switch (value) {
      0 => RESVG_IMAGE_RENDERING_OPTIMIZE_QUALITY,
      1 => RESVG_IMAGE_RENDERING_OPTIMIZE_SPEED,
      _ => throw ArgumentError(
          "Unknown value for resvg_image_rendering: $value"),
    };