NiceHtmlEditor constructor

const NiceHtmlEditor({
  1. Key? key,
  2. required String value,
  3. required ValueChanged<String> onChange,
  4. String? placeholder,
  5. double height = 200,
  6. List<NiceHtmlEditorCommand> toolbar = _defaultToolbar,
  7. bool readOnly = false,
  8. bool disabled = false,
  9. String? label,
  10. String? error,
  11. String? helperText,
  12. bool required = false,
  13. String? mentionTrigger,
  14. List<NiceMentionItem>? mentionSuggestions,
  15. ValueChanged<String>? onMentionSearch,
})

Implementation

const NiceHtmlEditor({
  super.key,
  required this.value,
  required this.onChange,
  this.placeholder,
  this.height = 200,
  this.toolbar = _defaultToolbar,
  this.readOnly = false,
  this.disabled = false,
  this.label,
  this.error,
  this.helperText,
  this.required = false,
  this.mentionTrigger,
  this.mentionSuggestions,
  this.onMentionSearch,
});