SnapComponent.fraction constructor
const
SnapComponent.fraction({
- required Components component,
- required double fraction,
Factory constructor to create a SnapComponentAtFraction, which stops at a specific fraction position.
component: The component to associate with this fraction.fraction: The fraction of the viewport to calculate the position.
Implementation
const factory SnapComponent.fraction({
required Components component,
required double fraction,
}) = SnapComponentAtFraction;