SnapComponent.offset constructor
const
SnapComponent.offset({
- required Components component,
- double offset,
- double size,
Factory constructor to create a SnapComponentWithOffset with a component, size, and offset.
component: The component to associate with this snap size and offset.offset: The additional pixel offset to add to the size.size: A multiplier for the component's base size. Must be non-negative.
Implementation
const factory SnapComponent.offset({
required Components component,
double offset,
double size,
}) = SnapComponentWithOffset;