TextEditor constructor

const TextEditor({
  1. Key? key,
  2. String? heroTag,
  3. TextLayerData? layer,
  4. ProImageEditorCallbacks callbacks = const ProImageEditorCallbacks(),
  5. ProImageEditorConfigs configs = const ProImageEditorConfigs(),
  6. required ThemeData theme,
})

Creates a TextEditor widget.

The heroTag, layer, i18n, customWidgets, and imageEditorTheme parameters are required.

Implementation

const TextEditor({
  super.key,
  this.heroTag,
  this.layer,
  this.callbacks = const ProImageEditorCallbacks(),
  this.configs = const ProImageEditorConfigs(),
  required this.theme,
});