Gets a property with key. Returns the value as double.
key
def The default value if key not found.
def
double? getPropertyAsDouble(String key, [double? def]) => getPropertyAs(key, parseDouble, def);