translate method

ContainerBuilder translate(
  1. double x,
  2. double y
)

translate-{x}-{y} - 同时平移X和Y轴

Implementation

ContainerBuilder translate(double x, double y) {
  _transform = (_transform ?? Matrix4.identity())..translateByDouble(x, y, 0.0, 0.0);
  return this;
}