restore method

  1. @override
void restore()
override

Pops the current save stack, if there is anything to pop. Otherwise, does nothing.

Use save and saveLayer to push state onto the stack.

If the state was pushed with saveLayer, then this call will also cause the new layer to be composited into the previous layer.

Implementation

@override
void restore() {
  _saveCount -= 1;
  assert(_saveCount >= 0);
  invocations.add(RecordedInvocation(_MethodCall(#restore), stack: StackTrace.current));
}