PaintCanvasInitConfigs class

Configuration class for initializing the paint canvas.

Constructors

PaintCanvasInitConfigs({Widget? placeholderWidget, bool? scalable, bool? showColorPicker, List<Color>? colors, Function? save, VoidCallback? onUpdate, Widget? undoIcon, Widget? colorIcon, required Size imageSize, required ThemeData theme, required I18n i18n, required ImageEditorTheme imageEditorTheme, required ImageEditorIcons icons, required ImageEditorDesignModeE designMode, required PaintEditorConfigs configs})
Creates a new instance of PaintCanvasInitConfigs.
const

Properties

colorIcon Widget?
Icon widget for color selection.
final
colors List<Color>?
List of colors to be used in the color picker.
final
configs PaintEditorConfigs
Configuration options for the paint editor.
final
designMode ImageEditorDesignModeE
Design mode for the image editor.
final
hashCode int
The hash code for this object.
no setterinherited
i18n I18n
Internationalization settings.
final
icons ImageEditorIcons
Icons used in the image editor.
final
imageEditorTheme ImageEditorTheme
Theme settings for the image editor.
final
imageSize Size
Size of the image.
final
onUpdate VoidCallback?
Callback function to update the canvas.
final
placeholderWidget Widget?
A widget to display as a placeholder.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
save Function?
Callback function to save the canvas.
final
scalable bool?
Determines whether the canvas is scalable.
final
showColorPicker bool?
Determines whether to show the color picker.
final
theme ThemeData
Theme data for the canvas.
final
undoIcon Widget?
Icon widget for undo action.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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