getSaveCount method

  1. @Native<Int32 Function(Pointer<Void>)>(Pointer<Void>)>(symbol: 'Canvas::getSaveCount', isLeaf: true)
int getSaveCount()

Returns the number of items on the save stack, including the initial state. This means it returns 1 for a clean canvas, and that each call to save and saveLayer increments it, and that each matching call to restore decrements it.

This number cannot go below 1.


@Native<Int32 Function(Pointer<Void>)>(symbol: 'Canvas::getSaveCount', isLeaf: true)
external int getSaveCount();