readList method

List readList(
  1. dynamic source,
  2. dynamic key
)

Reads a list value from the source, and if not found, returns an empty list.

Implementation

List readList(source, key) {
  return tryReadList(source, key) ?? [];
}