from static method

TomlSimpleKey from(
  1. dynamic key
)

Converts the given key to an AST node.

Throws a TomlUnknownKeyTypeException when the given key cannot be encoded by TOML.

Implementation

static TomlSimpleKey from(dynamic key) =>
    TomlAstBuilder().buildSimpleKey(key);