fromValue static method

Filter fromValue(
  1. int value
)

Implementation

static Filter fromValue(int value) => switch (value) {
      0 => NEAREST,
      1 => BILINEAR,
      2 => BICUBIC,
      _ => throw MNNException('Unknown Filter: $value'),
    };