fromValue static method

resvg_text_rendering fromValue(
  1. int value
)

Implementation

static resvg_text_rendering fromValue(int value) => switch (value) {
      0 => RESVG_TEXT_RENDERING_OPTIMIZE_SPEED,
      1 => RESVG_TEXT_RENDERING_OPTIMIZE_LEGIBILITY,
      2 => RESVG_TEXT_RENDERING_GEOMETRIC_PRECISION,
      _ =>
        throw ArgumentError("Unknown value for resvg_text_rendering: $value"),
    };