SnapComponent.fractionOffset constructor
const
SnapComponent.fractionOffset({
- required Components component,
- double fraction,
- double size,
Factory constructor to create a SnapComponentWithOffsetFraction, which combines a size multiplier and an fraction relative to the viewport.
component: The component to associate with this snap size and fraction.fraction: A fraction (0.0 to 1.0) of viewport to add to the size.size: A multiplier for the component's base size. Must be non-negative.
Implementation
const factory SnapComponent.fractionOffset({
required Components component,
double fraction,
double size,
}) = SnapComponentWithOffsetFraction;