$oneOrList<T> function
Reads one value or a list of them as a list.
Implementation
List<T> Function(Object?, String) $oneOrList<T>(
T Function(Object? value, String path) item) =>
(v, path) => v is List ? $list(item)(v, path) : [item(v, path)];