$oneOrList<T> function

List<T> Function(Object?, String) $oneOrList<T>(
  1. T item(
    1. Object? value,
    2. String path
    )
)

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)];