SnapComponent.merge constructor

const SnapComponent.merge({
  1. required SnapComponent a,
  2. required SnapComponent b,
  3. required OffsetMerge merge,
})

Factory constructor to create a SnapComponentMerge, which merges the sizes of two components.

  • a: The first component in the merge.
  • b: The second component in the merge.
  • merge: The function to combine the sizes of the two components.

Implementation

const factory SnapComponent.merge({
  required SnapComponent a,
  required SnapComponent b,
  required OffsetMerge merge,
}) = SnapComponentMerge;