parser property

Parser<TomlKeyValuePair> parser
final

Parser for a TOML key/value pair.

Implementation

static final Parser<TomlKeyValuePair> parser = (
  TomlKey.parser.skip(
    after: tomlWhitespace & char(separator) & tomlWhitespace,
  ),
  TomlValue.parser,
).toSequenceParser().map((pair) => TomlKeyValuePair(pair.$1, pair.$2));