NiceCodeEditor constructor

const NiceCodeEditor({
  1. Key? key,
  2. List<NiceCodeFile> files = const [],
  3. int activeFileIndex = 0,
  4. void onSave(
    1. String fileName,
    2. String content
    )?,
  5. void onFileChanged(
    1. String fileName,
    2. String content
    )?,
  6. void onActiveFileChanged(
    1. int index
    )?,
  7. double height = 400,
  8. bool showMinimap = false,
  9. bool wordWrap = false,
  10. int tabSize = 2,
  11. bool showLineNumbers = true,
})

Implementation

const NiceCodeEditor({
  super.key,
  this.files = const [],
  this.activeFileIndex = 0,
  this.onSave,
  this.onFileChanged,
  this.onActiveFileChanged,
  this.height = 400,
  this.showMinimap = false,
  this.wordWrap = false,
  this.tabSize = 2,
  this.showLineNumbers = true,
});