ListViewObserver constructor

const ListViewObserver({
  1. Key? key,
  2. required Widget child,
  3. required List<BuildContext> sliverListContexts(),
  4. required dynamic onObserve(
    1. Map<BuildContext, ListViewObserveModel>
    ),
  5. double leadingOffset = 0,
  6. double dynamicLeadingOffset()?,
  7. double toNextOverPercent = 1,
})

Implementation

const ListViewObserver({
  Key? key,
  required this.child,
  required this.sliverListContexts,
  required this.onObserve,
  this.leadingOffset = 0,
  this.dynamicLeadingOffset,
  this.toNextOverPercent = 1,
})  : assert(toNextOverPercent > 0 && toNextOverPercent <= 1),
      super(key: key);