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