EditorModelStyleOptions constructor

EditorModelStyleOptions({
  1. EdgeInsets padding = const EdgeInsets.all(15.0),
  2. double heightOfContainer = 300,
  3. Map<String, TextStyle> theme = myTheme,
  4. String fontFamily = "monospace",
  5. double? letterSpacing,
  6. double fontSize = 15,
  7. double lineHeight = 1.6,
  8. int tabSize = 2,
  9. Color editorColor = defaultColorEditor,
  10. Color editorBorderColor = defaultColorBorder,
  11. Color editorFilenameColor = defaultColorFileName,
  12. Color editorToolButtonColor = defaultToolButtonColor,
  13. Color editorToolButtonTextColor = Colors.white,
  14. Color editButtonBackgroundColor = defaultEditBackgroundColor,
  15. Color editButtonTextColor = Colors.black,
  16. String editButtonName = "Edit",
  17. double? fontSizeOfFilename,
  18. TextStyle textStyleOfTextField = const TextStyle(color: Colors.black87, fontSize: 16, letterSpacing: 1.25, fontWeight: FontWeight.w500),
  19. ToolbarOptions toolbarOptions = const ToolbarOptions(),
  20. bool placeCursorAtTheEndOnEdit = true,
})

Implementation

EditorModelStyleOptions(
    {this.padding = const EdgeInsets.all(15.0),
    this.heightOfContainer = 300,
    this.theme = myTheme,
    this.fontFamily = "monospace",
    this.letterSpacing,
    this.fontSize = 15,
    this.lineHeight = 1.6,
    this.tabSize = 2,
    this.editorColor = defaultColorEditor,
    this.editorBorderColor = defaultColorBorder,
    this.editorFilenameColor = defaultColorFileName,
    this.editorToolButtonColor = defaultToolButtonColor,
    this.editorToolButtonTextColor = Colors.white,
    this.editButtonBackgroundColor = defaultEditBackgroundColor,
    this.editButtonTextColor = Colors.black,
    this.editButtonName = "Edit",
    this.fontSizeOfFilename,
    this.textStyleOfTextField = const TextStyle(
      color: Colors.black87,
      fontSize: 16,
      letterSpacing: 1.25,
      fontWeight: FontWeight.w500,
    ),
    this.toolbarOptions = const ToolbarOptions(),
    this.placeCursorAtTheEndOnEdit = true});