DataKey constructor

DataKey(
  1. Object? key
)

Renders a single data key formatted for YAML output.

Keys containing whitespace or special characters are automatically quoted.

Example output: userId, "key with spaces"

Implementation

DataKey(this.key);