getProperty<T> method

T? getProperty<T>(
  1. String key, [
  2. T? def
])

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;
}