EditorResult constructor

EditorResult({
  1. String? scene,
  2. String? artifact,
  3. String? thumbnail,
  4. Map<String, dynamic> metadata = const {},
})

Creates a new EditorResult from the given properties. The scene is a string representation of the exported scene which can be used to load into the editor again. The artifact represents the exported file which can be an image, a video or a document (e.g. PDF) depending on the UI. The thumbnail is a file url to the thumbnail of the artifact. In case the scene contains multiple pages, the thumbnail always represents a preview of the first page and for videos of the first frame (if not modified natively). The metadata can be used to process any Map<String, dynamic> and is an empty map per default.

Implementation

EditorResult(
    {this.scene, this.artifact, this.thumbnail, this.metadata = const {}});