getValueAtIndex<S> method

S? getValueAtIndex<S>(
  1. int index,
  2. S? getValue(
    1. T
    )
)

Implementation

S? getValueAtIndex<S>(int index, S? Function(T) getValue) {
  final uniqueKey =
      _childrenIndexes.entries.firstWhereOrNull((e) => e.value == index)?.key;
  return getValueForKey(uniqueKey, getValue);
}