Canvas.flush

Function/Meaning

Flash drawing

Type
Canvasclassmethod of
Syntax
flush()
Arguments
Return value
None (void)
Explanation

It is used when replacing the renderTarget that you want to reflect the drawing.
If you swap renderTargets during onDraw, flush is called internally, so no explicit call is needed.