translation property Null safety

Offset 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;
void translation=(Offset value)

Implementation

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