CodeEditorStyle class
An immutable style describing how to format and paint editor content.
Constructors
- CodeEditorStyle({double? fontSize, String? fontFamily, double? fontHeight, Color? textColor, Color? hintTextColor, Color? backgroundColor, Color? selectionColor, Color? highlightColor, Color? cursorColor, double? cursorWidth, Color? cursorLineColor, Color? chunkIndicatorColor, CodeHighlightTheme? codeTheme})
-
Creates a code editor style.
const
Properties
- backgroundColor → Color?
-
The color to use as the background for the editor.
final
- chunkIndicatorColor → Color?
-
The color of the chunked indicator at the end of the line.
final
- codeTheme → CodeHighlightTheme?
-
The code syntax highlighting rules and styles.
final
- cursorColor → Color?
-
The color of the cursor.
final
- cursorLineColor → Color?
-
The color to use as the border for the focused line.
final
- cursorWidth → double?
-
How thick the cursor will be.
final
- fontFamily → String?
-
The name of the font to use when painting the text (e.g., Roboto).
final
- fontHeight → double?
-
The height of this text span, as a multiple of the font size.
final
- fontSize → double?
-
The size of fonts (in logical pixels) to use when painting the text.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- highlightColor → Color?
-
The color to use as the background for the highlighted text, such as
the search matched text.
final
- hintTextColor → Color?
-
The color to use when painting the hint text.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectionColor → Color?
-
The color to use as the background for the selected text.
final
- textColor → Color?
-
The color to use when painting the text.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited