unwrapKey method
dynamic
unwrapKey(
- dynamic value
Converts a TomlEncodableKey to an object which TOML can represent as a key.
TomlEncodableKey.toTomlKey will be repeatedly applied on value
until
the return value is representable by TOML as a key.
Returns value
if it is not an instance of TomlEncodableKey.
Implementation
dynamic unwrapKey(dynamic value) {
while (value is TomlEncodableKey) {
value = value.toTomlKey();
}
return value;
}