InlineCompletionItemProvider constructor

InlineCompletionItemProvider({
  1. FutureOr<Object> provideInlineCompletionItems(
    1. TextDocument,
    2. Position,
    3. InlineCompletionContext,
    4. CancellationToken,
    )?,
})

Implementation

factory InlineCompletionItemProvider(
        {_i4.FutureOr<_i2.Object> Function(
          _i3.TextDocument,
          _i3.Position,
          _i3.InlineCompletionContext,
          _i3.CancellationToken,
        )? provideInlineCompletionItems}) =>
    InlineCompletionItemProvider._(
        provideInlineCompletionItems: provideInlineCompletionItems == null
            ? null
            : _i5.allowInterop((
                p0,
                p1,
                p2,
                p3,
              ) =>
                _i6.Promise.futureOr(() => provideInlineCompletionItems(
                      p0,
                      p1,
                      p2,
                      p3,
                    ))));