fromValue static method

resvg_shape_rendering fromValue(
  1. int value
)

Implementation

static resvg_shape_rendering fromValue(int value) => switch (value) {
      0 => RESVG_SHAPE_RENDERING_OPTIMIZE_SPEED,
      1 => RESVG_SHAPE_RENDERING_CRISP_EDGES,
      2 => RESVG_SHAPE_RENDERING_GEOMETRIC_PRECISION,
      _ => throw ArgumentError(
          "Unknown value for resvg_shape_rendering: $value"),
    };