restore method Null safety

  1. @FfiNative<Void Function(Pointer<Void>)>(Pointer<Void>)>('Canvas::restore', isLeaf: true)
void restore()
FfiNative<Void Function(Pointer<Void>)>(Pointer<Void>)>('Canvas::restore', isLeaf: true)">@FfiNative<Void Function(Pointer<Void>)>(Pointer<Void>)>('Canvas::restore', isLeaf: true)

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 with saveLayer, then this call will also cause the new layer to be composited into the previous layer.

Implementation

@FfiNative<Void Function(Pointer<Void>)>('Canvas::restore', isLeaf: true)
external void restore();