getValue method

dynamic getValue(
  1. String key
)

Implementation

getValue(String key) {
  KeyChild keyChild = extractKeys(key);

  if (data.containsKey(keyChild.key)) {
    if (data[key] is YekongaForm) {
      if (keyChild.subKey != null) {
        return data[key].getValue(keyChild.subKey);
      }
    } else {
      return data[keyChild.key];
    }
  }

  return null;
}