operator [] method

DragBounds? operator [](
  1. DragBound bound
)

Implementation

DragBounds? operator [](DragBound bound) => switch (bound) {
      .top => top,
      .bottom => bottom,
      .left => left,
      .right => right,
    };