SnapComponentMap constructor

const SnapComponentMap(
  1. SnapComponent component, {
  2. required OffsetMap map,
})

A wrapper around a snap component that applies a mapping function to its size.

  • component: The base component whose size will be mapped.
  • map: The mapping function to transform the size of the component.

Implementation

const SnapComponentMap(
  this.component, {
  required this.map,
});