CustomTextEditorProvider constructor

CustomTextEditorProvider({
  1. FutureOr<void> resolveCustomTextEditor(
    1. TextDocument,
    2. WebviewPanel,
    3. CancellationToken
    )?,
})

Implementation

factory CustomTextEditorProvider(
        {_i4.FutureOr<void> Function(
          _i3.TextDocument,
          _i3.WebviewPanel,
          _i3.CancellationToken,
        )? resolveCustomTextEditor}) =>
    CustomTextEditorProvider._(
        resolveCustomTextEditor: resolveCustomTextEditor == null
            ? null
            : _i5.allowInterop((
                p0,
                p1,
                p2,
              ) =>
                _i6.Promise.futureOr(() => resolveCustomTextEditor(
                      p0,
                      p1,
                      p2,
                    ))));