StickerEditorConfigs constructor

const StickerEditorConfigs({
  1. required BuildStickers buildStickers,
  2. double initWidth = 100,
  3. double minScale = double.negativeInfinity,
  4. double maxScale = double.infinity,
  5. 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');