translation property Null safety

Vec2D translation
inherited

Implementation

Vec2D get translation => Vec2D.fromValues(x, y);
void translation=(Vec2D pos)
inherited

Sets the position of the Node

Implementation

set translation(Vec2D pos) {
  x = pos[0];
  y = pos[1];
}