itemExtent property
double
get
itemExtent
Implementation
double get itemExtent {
if (items.isEmpty) return 0;
switch (direction) {
case 'horizontal':
return items.values.first.viewWidth ?? items.values.first.width ?? 0;
case 'vertical':
default:
return items.values.first.viewHeight ?? items.values.first.height ?? 0;
}
}