TextEditorOptions class
Represents a {@link TextEditortext editor}'s {@link TextEditor.optionsoptions}.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
- @anonymous
Constructors
- TextEditorOptions({Object? tabSize, Object? indentSize, Object? insertSpaces, TextEditorCursorStyle? cursorStyle, TextEditorLineNumbersStyle? lineNumbers})
-
factory
Properties
- cursorStyle ↔ TextEditorCursorStyle?
-
Available on TextEditorOptions, provided by the TextEditorOptions$Typings extension
The rendering style of the cursor in this editor. When getting a text editor's options, this property will always be present. When setting a text editor's options, this property is optional.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- indentSize ↔ Object?
-
Available on TextEditorOptions, provided by the TextEditorOptions$Typings extension
The number of spaces to insert when {@link TextEditorOptions.insertSpaces insertSpaces} is true.getter/setter pair - insertSpaces ↔ Object?
-
Available on TextEditorOptions, provided by the TextEditorOptions$Typings extension
When pressing Tab insert {@link TextEditorOptions.tabSize n} spaces. When getting a text editor's options, this property will always be a boolean (resolved). When setting a text editor's options, this property is optional and it can be a boolean or"auto"
.getter/setter pair - lineNumbers ↔ TextEditorLineNumbersStyle?
-
Available on TextEditorOptions, provided by the TextEditorOptions$Typings extension
Render relative line numbers w.r.t. the current line number. When getting a text editor's options, this property will always be present. When setting a text editor's options, this property is optional.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tabSize ↔ Object?
-
Available on TextEditorOptions, provided by the TextEditorOptions$Typings extension
The size in spaces a tab takes. This is used for two purposes:getter/setter pair
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