SnapComponent.map constructor
const
SnapComponent.map(
- SnapComponent component, {
- required OffsetMap map,
Factory constructor to create a SnapComponentMap, which applies a mapping function to another SnapComponent.
component: The base component whose size will be mapped.map: The mapping function to transform the size of the component.
Implementation
const factory SnapComponent.map(
SnapComponent component, {
required OffsetMap map,
}) = SnapComponentMap;