lookup method

List<String> lookup(
  1. String key
)

Lookup the values of a property by given key.

Implementation

List<String> lookup(String key) {
  return children
      .where((element) => element.key == key)
      .map((e) => e.value)
      .toList();
}