performActions method

void performActions(
  1. Canvas canvas,
  2. dynamic size
)

Implementation

void performActions(Canvas canvas, Size size) {
  // HACK: Must sync transform first because each paint will saveLayer and restore that make the transform not effect
  if (!_lastMatrix.isIdentity()) {
    canvas.transform(_lastMatrix.storage);
  }
  for (int i = 0; i < _actions.length; i++) {
    _actions[i](canvas, size);
  }
  if (_lastMatrix != _matrix) {
    _lastMatrix = _matrix.clone();
  }
  // Clear actions
  _actions.clear();
}