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. String? filePath,
  9. String? initialText,
  10. FocusNode? focusNode,
  11. ScrollController? verticalScrollController,
  12. ScrollController? horizontalScrollController,
  13. TextStyle? textStyle,
  14. EdgeInsets? innerPadding,
  15. bool readOnly = false,
  16. bool autoFocus = false,
  17. bool lineWrap = false,
  18. bool enableFolding = true,
  19. bool enableGuideLines = true,
  20. bool enableSuggestions = true,
  21. bool enableGutter = true,
  22. bool enableGutterDivider = false,
  23. CodeSelectionStyle? selectionStyle,
  24. GutterStyle? gutterStyle,
  25. SuggestionStyle? suggestionStyle,
  26. 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.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,
});