SnapComponent.offset constructor

const SnapComponent.offset({
  1. required Components component,
  2. double offset,
  3. 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;