NotebookSerializer constructor

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

Implementation

factory NotebookSerializer({
  _i2.Object Function(
    _i8.Uint8List,
    _i3.CancellationToken,
  )? deserializeNotebook,
  _i4.FutureOr<_i8.Uint8List> Function(
    _i3.NotebookData,
    _i3.CancellationToken,
  )? serializeNotebook,
}) =>
    NotebookSerializer._(
      deserializeNotebook: deserializeNotebook == null
          ? null
          : _i5.allowInterop(deserializeNotebook),
      serializeNotebook: serializeNotebook == null
          ? null
          : _i5.allowInterop((
              p0,
              p1,
            ) =>
              _i6.Promise.futureOr(() => serializeNotebook(
                    p0,
                    p1,
                  ))),
    );