CodeCrafter constructor

const CodeCrafter({
  1. Key? key,
  2. required CodeCrafterController controller,
  3. String? initialText,
  4. String? filePath,
  5. FocusNode? focusNode,
  6. TextStyle? textStyle,
  7. GutterStyle? gutterStyle,
  8. Map<String, TextStyle>? editorTheme,
  9. AiCompletion? aiCompletion,
  10. TextStyle? aiCompletionTextStyle,
  11. LspConfig? lspConfig,
  12. OverlayStyle? suggestionStyle,
  13. OverlayStyle? hoverDetailsStyle,
  14. Color? selectionHandleColor,
  15. Color? selectionColor,
  16. Color? cursorColor,
  17. bool enableBreakPoints = true,
  18. bool enableFolding = true,
  19. bool enableRulerLines = true,
  20. bool enableSuggestions = true,
  21. bool enableGutterDivider = false,
  22. bool wrapLines = false,
  23. bool autoFocus = false,
  24. bool readOnly = false,
  25. int tabSize = 3,
  26. EdgeInsets innerPadding = EdgeInsets.zero,
  27. EditorField? editorField,
})

Implementation

const CodeCrafter({
  super.key,
  required this.controller,
  this.initialText,
  this.filePath,
  this.focusNode,
  this.textStyle,
  this.gutterStyle,
  this.editorTheme,
  this.aiCompletion,
  this.aiCompletionTextStyle,
  this.lspConfig,
  this.suggestionStyle,
  this.hoverDetailsStyle,
  this.selectionHandleColor,
  this.selectionColor,
  this.cursorColor,
  this.enableBreakPoints = true,
  this.enableFolding = true,
  this.enableRulerLines = true,
  this.enableSuggestions = true,
  this.enableGutterDivider = false,
  this.wrapLines = false,
  this.autoFocus = false,
  this.readOnly = false,
  this.tabSize = 3,
  this.innerPadding = EdgeInsets.zero,
  this.editorField,
});