start method

void start(
  1. Canvas canvas
)

Implementation

void start(Canvas canvas) {
  if (_lastCameraStarted != null) {
    throw "Another camera already started, please stop that camera before starting this one";
  }
  canvas.save();
  canvas.translate(position.x, position.y);
  canvas.scale(zoom);
  _lastCameraStarted = id;
}