Anchor2D.withHorizontalAndVertical constructor

Anchor2D.withHorizontalAndVertical(
  1. double horizontal,
  2. double vertical
)

Creates a new instance of an Anchor2D.

  • horizontal Defines the x axis where the left is 0, the right is 1 and the middle is 0.5.

  • vertical Defines the y axis where the top is 0, the bottom is 1 and the middle is 0.5.

Implementation

factory Anchor2D.withHorizontalAndVertical(double horizontal, double vertical) => $prototype.withHorizontalAndVertical(horizontal, vertical);