NotebookSerializer class

The notebook serializer enables the editor to open notebook files.

At its core the editor only knows a {@link NotebookDatanotebook data structure} but not how that data structure is written to a file, nor how it is read from a file. The notebook serializer bridges this gap by deserializing bytes into notebook data and vice versa.

Available extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

NotebookSerializer({Object deserializeNotebook(Uint8List, CancellationToken)?, FutureOr<Uint8List> serializeNotebook(NotebookData, CancellationToken)?})
factory

Properties

deserializeNotebook Object Function(Uint8List, CancellationToken)

Available on NotebookSerializer, provided by the NotebookSerializer$Typings extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serializeNotebook FutureOr<Uint8List> Function(NotebookData, CancellationToken)

Available on NotebookSerializer, provided by the NotebookSerializer$Typings extension

getter/setter pair

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