CodeEditor constructor

CodeEditor({
  1. String title = 'Code',
  2. TextAreaController? controller,
  3. TextAreaModel? model,
  4. FocusController? focusController,
  5. String? focusId,
  6. bool autofocus = false,
  7. bool enabled = true,
  8. String? prompt,
  9. String? placeholder,
  10. int? width,
  11. int height = 8,
  12. bool showLineNumbers = true,
  13. bool softWrap = true,
  14. bool? useVirtualCursor,
  15. TextAreaKeyMap? keyMap,
  16. TextAreaStyles? styles,
  17. CursorModel? cursor,
  18. bool showHelpBar = true,
  19. bool helpExpanded = false,
  20. Widget? headerTrailing,
  21. Widget? footer,
  22. TextChangedCallback? onChanged,
  23. ValueCmdCallback<String>? onSave,
  24. bool showSaveStatus = true,
  25. String cleanLabel = 'saved',
  26. String dirtyLabel = 'modified',
  27. int indentWidth = 2,
  28. String? language = 'dart',
  29. bool showPreview = true,
  30. String previewTitle = 'Preview',
  31. int previewHeight = 8,
  32. bool previewWrap = true,
  33. ScrollController? previewController,
  34. bool showPreviewScrollbar = true,
  35. ChromaTheme? syntaxTheme,
  36. AdaptiveChromaTheme? adaptiveSyntaxTheme,
  37. Key? key,
})

Implementation

CodeEditor({
  this.title = 'Code',
  this.controller,
  this.model,
  this.focusController,
  this.focusId,
  this.autofocus = false,
  this.enabled = true,
  this.prompt,
  this.placeholder,
  this.width,
  this.height = 8,
  this.showLineNumbers = true,
  this.softWrap = true,
  this.useVirtualCursor,
  this.keyMap,
  this.styles,
  this.cursor,
  this.showHelpBar = true,
  this.helpExpanded = false,
  this.headerTrailing,
  this.footer,
  this.onChanged,
  this.onSave,
  this.showSaveStatus = true,
  this.cleanLabel = 'saved',
  this.dirtyLabel = 'modified',
  this.indentWidth = 2,
  this.language = 'dart',
  this.showPreview = true,
  this.previewTitle = 'Preview',
  this.previewHeight = 8,
  this.previewWrap = true,
  this.previewController,
  this.showPreviewScrollbar = true,
  this.syntaxTheme,
  this.adaptiveSyntaxTheme,
  super.key,
});