CodeCrafter constructor
const
CodeCrafter({
- Key? key,
- required CodeCrafterController controller,
- String? initialText,
- String? filePath,
- FocusNode? focusNode,
- TextStyle? textStyle,
- GutterStyle? gutterStyle,
- Map<
String, TextStyle> ? editorTheme, - AiCompletion? aiCompletion,
- TextStyle? aiCompletionTextStyle,
- LspConfig? lspConfig,
- OverlayStyle? suggestionStyle,
- OverlayStyle? hoverDetailsStyle,
- Color? selectionHandleColor,
- Color? selectionColor,
- Color? cursorColor,
- bool enableBreakPoints = true,
- bool enableFolding = true,
- bool enableRulerLines = true,
- bool enableSuggestions = true,
- bool enableGutterDivider = false,
- bool wrapLines = false,
- bool autoFocus = false,
- bool readOnly = false,
- int tabSize = 3,
- EdgeInsets innerPadding = EdgeInsets.zero,
- 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,
});