updateAnchor method

void updateAnchor(
  1. double anchor
)

Updates the anchor position (0.0 to 1.0)

Implementation

void updateAnchor(double anchor) {
  assert(
    anchor >= 0.0 && anchor <= 1.0,
    'anchor must be between 0.0 and 1.0',
  );
  runInAction(() {
    _anchor.value = anchor;
  });
}