StickerEditorConfigs class

Configuration options for a sticker editor.

StickerEditorConfigs allows you to define various settings for a sticker editor. You can configure features like enabling/disabling the editor, initial sticker width, and a custom method to build stickers.

Example usage:

StickerEditorConfigs(
  enabled: false,
  initWidth: 150,
  buildStickers: (setLayer) {
    return Container(); // Replace with your builder to load and display stickers.
  },
);

Constructors

StickerEditorConfigs({required BuildStickers buildStickers, double initWidth = 100, bool enabled = false})
Creates an instance of StickerEditorConfigs with optional settings.
const

Properties

buildStickers BuildStickers
A callback that builds the stickers.
final
enabled bool
Indicates whether the sticker editor is enabled.
final
hashCode int
The hash code for this object.
no setterinherited
initWidth double
The initial width of the stickers in the editor.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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