NotebookController constructor
NotebookController({
- String? id,
- String? notebookType,
- List<
String> ? supportedLanguages, - String? label,
- String? description,
- String? detail,
- bool? supportsExecutionOrder,
- FutureOr<
void> executeHandler()?, - FutureOr<
void> interruptHandler()?, - Event<
IInline81> ? onDidChangeSelectedNotebooks, - NotebookCellExecution createNotebookCellExecution()?,
- void updateNotebookAffinity()?,
- 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),
);