getProperty<T> method
Gets a property with key
.
def
The default value if key
not found.
Implementation
T? getProperty<T>(String key, [T? def]) {
var val = findKeyValue(_map, [key], true);
return val != null ? val as T : def;
}