EditorState constructor

EditorState({
  1. bool vimModeEnabled = false,
  2. String keybindingScheme = 'default',
  3. int tabSize = 2,
  4. bool useSoftTabs = true,
  5. bool wordWrap = true,
  6. bool lineNumbers = true,
  7. bool minimap = false,
  8. String theme = 'dark',
  9. double fontSize = 14.0,
  10. String fontFamily = 'JetBrains Mono',
  11. bool bracketMatching = true,
  12. bool autoIndent = true,
  13. bool highlightCurrentLine = true,
  14. Map<String, String>? customKeybindings,
})

Implementation

EditorState({
  this.vimModeEnabled = false,
  this.keybindingScheme = 'default',
  this.tabSize = 2,
  this.useSoftTabs = true,
  this.wordWrap = true,
  this.lineNumbers = true,
  this.minimap = false,
  this.theme = 'dark',
  this.fontSize = 14.0,
  this.fontFamily = 'JetBrains Mono',
  this.bracketMatching = true,
  this.autoIndent = true,
  this.highlightCurrentLine = true,
  Map<String, String>? customKeybindings,
}) : customKeybindings = customKeybindings ?? {};