TomlEncodableKey class abstract

Interface for an object which can be encoded as a TOML key.

This interface extends the TomlEncodableValue interface since a value that can be encoded as a TOML key, can always also be encoded as a TOML value since keys are strings and strings are TOML values.

An object can have to different representations depending on whether it is used as a key or a value. By default the object is converted using toTomlValue in both cases. You have to extend or mixin this interface in order to use the default implementation of toTomlKey.

Inheritance

Constructors

TomlEncodableKey()
Constant default constructor to allow subclasses with const constructors.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toTomlKey() → dynamic
Like toTomlValue but is invoked when the object is used as a key of a Map instead of as a value.
toTomlValue() → dynamic
Converts this object to an object which can natively be represented as a TOML value or table.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited