getPropertyAsNum method

num? getPropertyAsNum(
  1. String key, [
  2. num? def
])

Gets a property with key. Returns the value as num.

def The default value if key not found.

Implementation

num? getPropertyAsNum(String key, [num? def]) =>
    getPropertyAs(key, parseNum, def);