fromValue static method

stbir_edge fromValue(
  1. int value
)

Implementation

static stbir_edge fromValue(int value) => switch (value) {
  0 => STBIR_EDGE_CLAMP,
  1 => STBIR_EDGE_REFLECT,
  2 => STBIR_EDGE_WRAP,
  3 => STBIR_EDGE_ZERO,
  _ => throw ArgumentError('Unknown value for stbir_edge: $value'),
};