SnapComponentAtFraction constructor

const SnapComponentAtFraction({
  1. required Components component,
  2. required double fraction,
})

Represents a snap component that stops at a specified fraction position.

  • component: The component to associate with this fraction.
  • fraction: The fraction of the viewport to calculate the position.

Implementation

const SnapComponentAtFraction({
  required this.component,
  required this.fraction,
});