AsyncValueList<T> constructor

const AsyncValueList<T>({
  1. Key? key,
  2. required AsyncValue<List<T>> value,
  3. required Widget itemBuilder(
    1. BuildContext,
    2. T,
    3. int
    ),
  4. Widget? emptyWidget,
  5. EdgeInsetsGeometry padding = const EdgeInsets.only(top: 16, left: 16, right: 16, bottom: 100),
  6. double spacing = 12,
  7. Axis scrollDirection = Axis.vertical,
  8. bool shrinkWrap = false,
  9. ScrollPhysics? physics,
})

Implementation

const AsyncValueList({
  super.key,
  required this.value,
  required this.itemBuilder,
  this.emptyWidget,
  this.padding = const EdgeInsets.only(
    top: 16,
    left: 16,
    right: 16,
    bottom: 100,
  ),
  this.spacing = 12,
  this.scrollDirection = Axis.vertical,
  this.shrinkWrap = false,
  this.physics,
});