RichEditor constructor

const RichEditor({
  1. Key? key,
  2. dynamic onChanged(
    1. String content
    )?,
  3. dynamic onHeightChanged(
    1. int
    )?,
  4. dynamic onFocusChanged(
    1. bool
    )?,
  5. dynamic onStyleTextFocused(
    1. List<EditorStyleType> editorStyles
    )?,
  6. bool isReadOnly = false,
  7. String? placeholder,
  8. String? initialValue,
  9. Color loadingColor = Colors.white,
  10. String fontColorHex = '#22313F',
  11. bool isShowLoadingIndicator = true,
  12. double loadingIndicatorSize = 30,
  13. bool useHybridComposition = true,
})

Implementation

const RichEditor({
  Key? key,
  this.onChanged,
  this.onHeightChanged,
  this.onFocusChanged,
  this.onStyleTextFocused,
  this.isReadOnly = false,
  this.placeholder,
  this.initialValue,
  this.loadingColor = Colors.white,
  this.fontColorHex = '#22313F',
  this.isShowLoadingIndicator = true,
  this.loadingIndicatorSize = 30,
  this.useHybridComposition = true,
}) : super(key: key);