captureImage method

Future<Image?> captureImage()

Captures and returns an image of the current canvas viewport.

Implementation

Future<ui.Image?> captureImage() async =>
    await canvasDelegate?.captureImage();