Captures the current visible canvas as an image. Returns a ui.Image which can be used to save or share the graph.
Future<ui.Image?> captureImage();