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 += 1;
  invocations.add(RecordedInvocation(_MethodCall(#save), stack: StackTrace.current));
}