EmojiEditorConfigs constructor

const EmojiEditorConfigs({
  1. bool enabled = true,
  2. double initScale = 5.0,
  3. double minScale = double.negativeInfinity,
  4. double maxScale = double.infinity,
  5. bool checkPlatformCompatibility = true,
  6. List<CategoryEmoji> emojiSet = defaultEmojiSet,
})

Creates an instance of EmojiEditorConfigs with optional settings.

By default, the editor is enabled, and other properties are set to reasonable defaults.

Implementation

const EmojiEditorConfigs({
  this.enabled = true,
  this.initScale = 5.0,
  this.minScale = double.negativeInfinity,
  this.maxScale = double.infinity,
  this.checkPlatformCompatibility = true,
  this.emojiSet = defaultEmojiSet,
})  : assert(initScale > 0, 'initScale must be positive'),
      assert(maxScale >= minScale,
          'maxScale must be greater than or equal to minScale');