NotebookCell class
Represents a cell of a {@link NotebookDocumentnotebook}, either a {@link NotebookCellKind.Codecode}-cell or {@link NotebookCellKind.Markupmarkup}-cell.
NotebookCell instances are immutable and are kept in sync for as long as they are part of their notebook.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
- @anonymous
Constructors
-
NotebookCell({num? index, NotebookDocument? notebook, NotebookCellKind? kind, TextDocument? document, Object? metadata, List<
NotebookCellOutput> ? outputs, NotebookCellExecutionSummary? executionSummary}) -
factory
Properties
- document → TextDocument
-
Available on NotebookCell, provided by the NotebookCell$Typings extension
The {@link TextDocumenttext} of this cell, represented as text document.no setter - executionSummary → NotebookCellExecutionSummary?
-
Available on NotebookCell, provided by the NotebookCell$Typings extension
The most recent {@link NotebookCellExecutionSummaryexecution summary} for this cell.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- index → num
-
Available on NotebookCell, provided by the NotebookCell$Typings extension
The index of this cell in its {@link NotebookDocument.cellAtcontaining notebook}. The index is updated when a cell is moved within its notebook. The index is-1
when the cell has been removed from its notebook.no setter - kind → NotebookCellKind
-
Available on NotebookCell, provided by the NotebookCell$Typings extension
The kind of this cell.no setter - metadata → Object
-
Available on NotebookCell, provided by the NotebookCell$Typings extension
The metadata of this cell. Can be anything but must be JSON-stringifyable.no setter - notebook → NotebookDocument
-
Available on NotebookCell, provided by the NotebookCell$Typings extension
The {@link NotebookDocumentnotebook} that contains this cell.no setter -
outputs
→ List<
NotebookCellOutput> -
Available on NotebookCell, provided by the NotebookCell$Typings extension
The outputs of this cell.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited