operator [] method
Overridden operator that allows to "get" the property value of a specific key without calling the getProperty method.
Returns the value of the given key
or null if the key is not found.
Implementation
double? operator [](String key) {
return getProperty(key);
}