Configuration class

Configuration options and asset definitions for image and video editing tasks.

Constructors

Configuration({AdjustmentOptions? adjustment, BrushOptions? brush, bool? enableZoom, ExportOptions? export, FilterOptions? filter, FocusOptions? focus, bool? forceCrop, FrameOptions? frame, List<MainCanvasAction>? mainCanvasActions, OverlayOptions? overlay, SnappingOptions? snapping, StickerOptions? sticker, TextOptions? text, TextDesignOptions? textdesign, List<Tool>? tools, TransformOptions? transform, AudioOptions? audio, CompositionOptions? composition, TrimOptions? trim, WatermarkOptions? watermark, ThemeOptions? theme, ToolbarMode? toolbarMode, bool? singleToolMode})
Creates a new Configuration.

Properties

adjustment AdjustmentOptions?
Configuration options for Tool.adjustment.
final
audio AudioOptions?
Configuration options for Tool.audio.
final
brush BrushOptions?
Configuration options for Tool.brush.
final
composition CompositionOptions?
Configuration options for Tool.composition.
final
enableZoom bool?
Controls if the user can zoom the preview image.
final
export ExportOptions?
Export configuration options.
final
filter FilterOptions?
Configuration options for Tool.filter.
final
focus FocusOptions?
Configuration options for Tool.focus.
final
forceCrop bool?
When set to true, the user is forced to crop the asset to one of the allowed crop ratios in transform.items before being able to use other features of the editor. The transform tool will only be presented if the image does not already fit one of the allowed aspect ratios. It will be presented automatically, if the user changes the orientation of the asset and the result does not match an allowed aspect ratio.
final
frame FrameOptions?
Configuration options for Tool.frame.
final
hashCode int
The hash code for this object.
no setterinherited
mainCanvasActions List<MainCanvasAction>?
Defines all allowed actions for the main screen that are displayed as overlay buttons on the canvas. Only buttons for allowed actions are visible.
final
overlay OverlayOptions?
Configuration options for Tool.overlay.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
singleToolMode bool?
Controls if the editor is used in single tool mode. Prerequisite is that only one tool is in tools.
final
snapping SnappingOptions?
Global snapping options for all sprites, e.g., stickers, texts, and text designs.
final
sticker StickerOptions?
Configuration options for Tool.sticker.
final
text TextOptions?
Configuration options for Tool.text.
final
textdesign TextDesignOptions?
Configuration options for Tool.textDesign.
final
theme ThemeOptions?
Configuration options for the Theme.
final
toolbarMode ToolbarMode?
The ToolbarMode determining where the toolbar is placed.
final
tools List<Tool>?
The menu items (or tools) to display in the main menu.
final
transform TransformOptions?
Configuration options for Tool.transform.
final
trim TrimOptions?
Configuration options for Tool.trim.
final
watermark WatermarkOptions?
Global watermark options.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a Configuration to a Map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited