NotebookDocument constructor

NotebookDocument({
  1. Uri? uri,
  2. String? notebookType,
  3. num? version,
  4. bool? isDirty,
  5. bool? isUntitled,
  6. bool? isClosed,
  7. Object? metadata,
  8. num? cellCount,
  9. NotebookCell cellAt(
    1. num
    )?,
  10. List<NotebookCell> getCells([
    1. NotebookRange?
    ])?,
  11. Future save()?,
})

Implementation

factory NotebookDocument({
  _i3.Uri? uri,
  _i2.String? notebookType,
  _i2.num? version,
  _i2.bool? isDirty,
  _i2.bool? isUntitled,
  _i2.bool? isClosed,
  _i2.Object? metadata,
  _i2.num? cellCount,
  _i3.NotebookCell Function(_i2.num)? cellAt,
  _i2.List<_i3.NotebookCell> Function([_i3.NotebookRange?])? getCells,
  _i2.Future<_i2.dynamic> Function()? save,
}) =>
    NotebookDocument._(
      uri: uri ?? _i6.undefined,
      notebookType: notebookType,
      version: version,
      isDirty: isDirty,
      isUntitled: isUntitled,
      isClosed: isClosed,
      metadata: metadata ?? _i6.undefined,
      cellCount: cellCount,
      cellAt: cellAt == null ? null : _i5.allowInterop(cellAt),
      getCells: getCells == null ? null : _i5.allowInterop(getCells),
      save: save == null ? null : _i5.allowInterop(save),
    );