save method

  1. @override
void save()
override

Saves a copy of the current transform and clip on the save stack.

Call restore to pop the save stack.

See also:

  • saveLayer, which does the same thing but additionally also groups the commands done until the matching restore.

Implementation

@override
void save() {
  saveCount++;
  saveStack.add(_currentTransform.matrix.clone());
}