getChildSize method

  1. @override
Size? getChildSize(
  1. int i
)
override

The size of the ith child.

If i is negative or exceeds childCount, returns null.

Implementation

@override
Size? getChildSize(int i) {
  if (i < 0 || i >= _randomAccessChildren.length) {
    return null;
  }
  return _randomAccessChildren[i].size;
}