exportPngWithImages method
Future<PngSnapshot>
exportPngWithImages(
- DiagramSnapshot snapshot,
- PngOptions options,
- Object imageProvider()
Implementation
@override
Future<PngSnapshot> exportPngWithImages(
DiagramSnapshot snapshot,
PngOptions options,
Object Function(DiagramImageSource) imageProvider,
) => exportDiagramPng(
DiagramPublication(
state: DiagramEditorState.initial(snapshot.document),
scene: snapshot.scene,
),
options: options,
imageProvider: (source) => imageProvider(source) as ImageProvider<Object>,
);