TextEditor constructor

TextEditor({
  1. TextDocument? document,
  2. Selection? selection,
  3. List<Selection>? selections,
  4. List<Range>? visibleRanges,
  5. TextEditorOptions? options,
  6. ViewColumn? viewColumn,
  7. Future edit(
    1. void (
      1. TextEditorEdit
      ), [
    2. dynamic
    ])?,
  8. Future insertSnippet(
    1. SnippetString, [
    2. Object?,
    3. dynamic
    ])?,
  9. void setDecorations(
    1. TextEditorDecorationType,
    2. Object
    )?,
  10. void revealRange(
    1. Range, [
    2. TextEditorRevealType?
    ])?,
  11. void show([
    1. ViewColumn?
    ])?,
  12. 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),
    );