NotebookCellStatusBarItemProvider constructor

NotebookCellStatusBarItemProvider({
  1. Event<void>? onDidChangeCellStatusBarItems,
  2. FutureOr<Object> provideCellStatusBarItems(
    1. NotebookCell,
    2. CancellationToken
    )?,
})

Implementation

factory NotebookCellStatusBarItemProvider({
  _i3.Event<void>? onDidChangeCellStatusBarItems,
  _i4.FutureOr<_i2.Object> Function(
    _i3.NotebookCell,
    _i3.CancellationToken,
  )? provideCellStatusBarItems,
}) =>
    NotebookCellStatusBarItemProvider._(
      onDidChangeCellStatusBarItems:
          onDidChangeCellStatusBarItems ?? _i6.undefined,
      provideCellStatusBarItems: provideCellStatusBarItems == null
          ? null
          : _i5.allowInterop((
              p0,
              p1,
            ) =>
              _i6.Promise.futureOr(() => provideCellStatusBarItems(
                    p0,
                    p1,
                  ))),
    );