TextEditor constructor
TextEditor({
- TextDocument? document,
- Selection? selection,
- List<
Selection> ? selections, - List<
Range> ? visibleRanges, - TextEditorOptions? options,
- ViewColumn? viewColumn,
- Future edit(
- void (), [
- dynamic
- Future insertSnippet(
- SnippetString, [
- Object?,
- dynamic
- void setDecorations()?,
- void revealRange(])?,
- void show([])?,
- void hide()?,
Implementation
factory TextEditor({
_i3.TextDocument? document,
_i3.Selection? selection,
_i2.List<_i3.Selection>? selections,
_i2.List<_i3.Range>? visibleRanges,
_i3.TextEditorOptions? options,
_i3.ViewColumn? viewColumn,
_i2.Future<_i2.dynamic> Function(
void Function(_i3.TextEditorEdit), [
_i2.dynamic,
])? edit,
_i2.Future<_i2.dynamic> Function(
_i3.SnippetString, [
_i2.Object?,
_i2.dynamic,
])? insertSnippet,
void Function(
_i3.TextEditorDecorationType,
_i2.Object,
)? setDecorations,
void Function(
_i3.Range, [
_i3.TextEditorRevealType?,
])? revealRange,
void Function([_i3.ViewColumn?])? show,
void Function()? hide,
}) =>
TextEditor._(
document: document ?? _i6.undefined,
selection: selection ?? _i6.undefined,
selections: selections ?? _i6.undefined,
visibleRanges: visibleRanges ?? _i6.undefined,
options: options ?? _i6.undefined,
viewColumn: viewColumn?.name ?? _i6.undefined,
edit: edit == null ? null : _i5.allowInterop(edit),
insertSnippet:
insertSnippet == null ? null : _i5.allowInterop(insertSnippet),
setDecorations:
setDecorations == null ? null : _i5.allowInterop(setDecorations),
revealRange: revealRange == null ? null : _i5.allowInterop(revealRange),
show: show == null ? null : _i5.allowInterop(show),
hide: hide == null ? null : _i5.allowInterop(hide),
);