save method Null safety

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

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.


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