StickerEditorConfigs constructor
const
StickerEditorConfigs({
- required BuildStickers buildStickers,
- double initWidth = 100,
- double minScale = double.negativeInfinity,
- double maxScale = double.infinity,
- bool enabled = false,
Creates an instance of StickerEditorConfigs with optional settings.
By default, the editor is disabled (if not specified), and other properties are set to reasonable defaults.
Implementation
const StickerEditorConfigs({
required this.buildStickers,
this.initWidth = 100,
this.minScale = double.negativeInfinity,
this.maxScale = double.infinity,
this.enabled = false,
}) : assert(initWidth > 0, 'initWidth must be positive'),
assert(maxScale >= minScale,
'maxScale must be greater than or equal to minScale');