setProperty method
Set a property. To unset a property, set it to the empty string. @param key The property key. @param value The property value. @see #getProperty
Implementation
@override
void setProperty(String key, String value) {
var current_key = key.trim();
if (current_key.isEmpty) {
throw Exception('Attempt to set property with empty key');
}
// TODO: Check if the property is legal.
// Set or clear the property.
_properties[current_key] = _PropertyValue(value);
}