exportStateHistory method
Future<ExportStateHistory>
exportStateHistory({
- ExportEditorConfigs configs = const ExportEditorConfigs(),
Exports the current state history.
configs
specifies the export configurations, such as whether to include filters or layers.
Returns an ExportStateHistory object containing the exported state history, image state history, image size, edit position, and export configurations.
Implementation
Future<ExportStateHistory> exportStateHistory(
{ExportEditorConfigs configs = const ExportEditorConfigs()}) async {
if (_imageInfos == null) await decodeImage();
return ExportStateHistory(
editorConfigs: this.configs,
stateHistory: stateManager.stateHistory,
imageInfos: _imageInfos!,
imgSize: sizesManager.decodedImageSize,
editorPosition: stateManager.position,
configs: configs,
contentRecorderCtrl: _controllers.screenshot,
// ignore: use_build_context_synchronously
context: context,
);
}