GridViewObserver constructor

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

Implementation

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