translation property

Offset get translation

The translation to apply to the child, scaled to the child's size.

For example, an Offset with a dx of 0.25 will result in a horizontal translation of one quarter the width of the child.

Implementation

Offset get translation => _translation;
set translation (Offset value)

Implementation

set translation(Offset value) {
  if (_translation == value) {
    return;
  }
  _translation = value;
  markNeedsPaint();
  markNeedsSemanticsUpdate();
}