itemSize property

double itemSize
final

Composed of the size of each item + its margin/padding. Size used is width if scrollDirection is Axis.horizontal, height if Axis.vertical.

Example:

  • Horizontal list
  • Card with width 100
  • Margin is EdgeInsets.symmetric(horizontal: 5)
  • itemSize is 100+5+5 = 110

Implementation

final double itemSize;