value property
The value accessor.
final stack = Stack(…)..value = (d, key, i, data) => d[key];
stack.value; // (d, key, i, data) => d[key]
The value accessor defaults to:
value(d, key, i, data) {
return d[key];
}
CAUTION: The default value accessor assumes that the input data is an list of maps exposing named properties with numeric values. This is a “wide” rather than “tidy” representation of data and is no longer recommended. See Stack.call for an example using tidy data.
Implementation
num Function(T, K, int, Iterable<T>) value;