findProperty<T> method

T? findProperty<T>(
  1. List<String> keys, [
  2. T? def
])

Finds a property with keys.

def The default value if keys not found.

Implementation

T? findProperty<T>(List<String> keys, [T? def]) {
  var val = findKeyValue(_map, keys, true);
  return val != null ? val as T : def;
}