NiceCodeEditor constructor
const
NiceCodeEditor({ - Key? key,
- List<NiceCodeFile> files = const [],
- int activeFileIndex = 0,
- void onSave(
- String fileName,
- String content
)?,
- void onFileChanged(
- String fileName,
- String content
)?,
- void onActiveFileChanged(
- int index
)?,
- double height = 400,
- bool showMinimap = false,
- bool wordWrap = false,
- int tabSize = 2,
- 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,
});