NotebookController constructor

NotebookController({
  1. String? id,
  2. String? notebookType,
  3. List<String>? supportedLanguages,
  4. String? label,
  5. String? description,
  6. String? detail,
  7. bool? supportsExecutionOrder,
  8. FutureOr<void> executeHandler(
    1. List<NotebookCell>,
    2. NotebookDocument,
    3. NotebookController
    )?,
  9. FutureOr<void> interruptHandler(
    1. NotebookDocument
    )?,
  10. Event<IInline81>? onDidChangeSelectedNotebooks,
  11. NotebookCellExecution createNotebookCellExecution(
    1. NotebookCell
    )?,
  12. void updateNotebookAffinity(
    1. NotebookDocument,
    2. NotebookControllerAffinity
    )?,
  13. void dispose()?,
})

Implementation

factory NotebookController({
  _i2.String? id,
  _i2.String? notebookType,
  _i2.List<_i2.String>? supportedLanguages,
  _i2.String? label,
  _i2.String? description,
  _i2.String? detail,
  _i2.bool? supportsExecutionOrder,
  _i4.FutureOr<void> Function(
    _i2.List<_i3.NotebookCell>,
    _i3.NotebookDocument,
    _i3.NotebookController,
  )? executeHandler,
  _i4.FutureOr<void> Function(_i3.NotebookDocument)? interruptHandler,
  _i3.Event<_i3.IInline81>? onDidChangeSelectedNotebooks,
  _i3.NotebookCellExecution Function(_i3.NotebookCell)?
      createNotebookCellExecution,
  void Function(
    _i3.NotebookDocument,
    _i3.NotebookControllerAffinity,
  )? updateNotebookAffinity,
  void Function()? dispose,
}) =>
    NotebookController._(
      id: id,
      notebookType: notebookType,
      supportedLanguages: supportedLanguages,
      label: label,
      description: description,
      detail: detail,
      supportsExecutionOrder: supportsExecutionOrder,
      executeHandler: executeHandler == null
          ? null
          : _i5.allowInterop((
              p0,
              p1,
              p2,
            ) =>
              _i6.Promise.futureOr(() => executeHandler(
                    p0,
                    p1,
                    p2,
                  ))),
      interruptHandler: interruptHandler == null
          ? null
          : _i5.allowInterop(
              (p0) => _i6.Promise.futureOr(() => interruptHandler(p0))),
      onDidChangeSelectedNotebooks:
          onDidChangeSelectedNotebooks ?? _i6.undefined,
      createNotebookCellExecution: createNotebookCellExecution == null
          ? null
          : _i5.allowInterop(createNotebookCellExecution),
      updateNotebookAffinity: updateNotebookAffinity == null
          ? null
          : _i5.allowInterop(updateNotebookAffinity),
      dispose: dispose == null ? null : _i5.allowInterop(dispose),
    );