fromValue static method

ResizeEdge fromValue(
  1. int value
)

Implementation

static ResizeEdge fromValue(int value) => switch (value) {
  0 => ResizeEdge.top,
  1 => ResizeEdge.left,
  2 => ResizeEdge.right,
  3 => ResizeEdge.bottom,
  4 => ResizeEdge.topLeft,
  5 => ResizeEdge.topRight,
  6 => ResizeEdge.bottomLeft,
  7 => ResizeEdge.bottomRight,
  _ => ResizeEdge.top,
};