DocumentFormattingEditProvider constructor

DocumentFormattingEditProvider({
  1. FutureOr<List<TextEdit>> provideDocumentFormattingEdits(
    1. TextDocument,
    2. FormattingOptions,
    3. CancellationToken
    )?,
})

Implementation

factory DocumentFormattingEditProvider(
        {_i4.FutureOr<_i2.List<_i3.TextEdit>> Function(
          _i3.TextDocument,
          _i3.FormattingOptions,
          _i3.CancellationToken,
        )? provideDocumentFormattingEdits}) =>
    DocumentFormattingEditProvider._(
        provideDocumentFormattingEdits: provideDocumentFormattingEdits == null
            ? null
            : _i5.allowInterop((
                p0,
                p1,
                p2,
              ) =>
                _i6.Promise.futureOr(() => provideDocumentFormattingEdits(
                      p0,
                      p1,
                      p2,
                    ))));