grabbingContentOffset property

double grabbingContentOffset
final

The snapping position alignment regarding the grabbing content.

This is often used when you want a snapping position at the top or bottom of the screen, but want the entire grabbing widget to be visible.

For example, if you have a snapping position at the top of the screen, you usually use GrabbingContentOffset.bottom. See example:

SnappingPosition.factor(
  positionFactor: 1.0,
  grabbingContentOffset: GrabbingContentOffset.bottom,
),

Or if you have a snapping position at the bottom of the screen, you usually use GrabbingContentOffset.bottom. See example:

SnappingPosition.factor(
  positionFactor: 0.0,
  grabbingContentOffset: GrabbingContentOffset.top,
),

Implementation

final double grabbingContentOffset;