createNotebookController method

NotebookController createNotebookController(
  1. String id,
  2. String notebookType,
  3. String label, [
  4. FutureOr<void> handler(
    1. List<NotebookCell>,
    2. NotebookDocument,
    3. NotebookController
    )?,
])

Creates a new notebook controller.

Implementation

_i3.NotebookController createNotebookController(
  _i2.String id,
  _i2.String notebookType,
  _i2.String label, [
  _i4.FutureOr<void> Function(
    _i2.List<_i3.NotebookCell>,
    _i3.NotebookDocument,
    _i3.NotebookController,
  )? handler,
]) =>
    _i5.callMethod(
      this,
      'createNotebookController',
      [
        id,
        notebookType,
        label,
        handler == null
            ? _i6.undefined
            : _i5.allowInterop((
                p0,
                p1,
                p2,
              ) =>
                _i6.Promise.futureOr(() => handler(
                      p0,
                      p1,
                      p2,
                    ))),
      ],
    );