DataValue constructor

DataValue(
  1. Object? value
)

Renders a single data value formatted for YAML output.

Strings are quoted, null becomes "null", numbers and booleans render as-is.

Example output: "hello", 42, true, null

Implementation

DataValue(this.value);