text static method

NotebookCellOutputItem text(
  1. String value, [
  2. String? mime
])

Factory function to create a NotebookCellOutputItem from a string.

Note that an UTF-8 encoder is used to create bytes for the string.

Implementation

static _i3.NotebookCellOutputItem text(
  _i2.String value, [
  _i2.String? mime,
]) =>
    _i5.callMethod(
      _declaredNotebookCellOutputItem,
      'text',
      [
        value,
        mime ?? _i6.undefined,
      ],
    );