lineNumbers property
TextEditorLineNumbersStyle?
get
lineNumbers
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.
Implementation
_i3.TextEditorLineNumbersStyle? get lineNumbers => switch (_i5.getProperty(
this,
'lineNumbers',
)) {
_i2.String name => _i3.TextEditorLineNumbersStyle.values.byName(name),
_ => null
};
set
lineNumbers
(TextEditorLineNumbersStyle? value)
Implementation
set lineNumbers(_i3.TextEditorLineNumbersStyle? value) {
_i5.setProperty(
this,
'lineNumbers',
value?.name ?? _i6.undefined,
);
}