position method

void position(
  1. Offset newOffset
)

Sets the position of this child relative to the parent, this should only be called during layout or paint.

See also:

Implementation

void position(Offset newOffset) {
  setTransform(Matrix4.translationValues(newOffset.dx, newOffset.dy, 0));
}