CodeForge constructor

const CodeForge({
  1. Key? key,
  2. CodeForgeController? controller,
  3. UndoRedoController? undoController,
  4. Map<String, TextStyle>? editorTheme,
  5. Mode? language,
  6. AiCompletion? aiCompletion,
  7. TextStyle? aiCompletionTextStyle,
  8. LspConfig? lspConfig,
  9. String? filePath,
  10. String? initialText,
  11. FocusNode? focusNode,
  12. ScrollController? verticalScrollController,
  13. ScrollController? horizontalScrollController,
  14. TextStyle? textStyle,
  15. EdgeInsets? innerPadding,
  16. bool readOnly = false,
  17. bool autoFocus = false,
  18. bool lineWrap = false,
  19. bool enableFolding = true,
  20. bool enableGuideLines = true,
  21. bool enableSuggestions = true,
  22. bool enableGutter = true,
  23. bool enableGutterDivider = false,
  24. CodeSelectionStyle? selectionStyle,
  25. GutterStyle? gutterStyle,
  26. SuggestionStyle? suggestionStyle,
  27. HoverDetailsStyle? hoverDetailsStyle,
})

Creates a CodeForge code editor widget.

Implementation

const CodeForge({
  super.key,
  this.controller,
  this.undoController,
  this.editorTheme,
  this.language,
  this.aiCompletion,
  this.aiCompletionTextStyle,
  this.lspConfig,
  this.filePath,
  this.initialText,
  this.focusNode,
  this.verticalScrollController,
  this.horizontalScrollController,
  this.textStyle,
  this.innerPadding,
  this.readOnly = false,
  this.autoFocus = false,
  this.lineWrap = false,
  this.enableFolding = true,
  this.enableGuideLines = true,
  this.enableSuggestions = true,
  this.enableGutter = true,
  this.enableGutterDivider = false,
  this.selectionStyle,
  this.gutterStyle,
  this.suggestionStyle,
  this.hoverDetailsStyle,
});