getSize<T> method
Calculates the size of the snap component relative to the provided extent.
extent: The available space and configuration of the MultiStateSheet.- Returns the calculated size.
Implementation
@override
double getSize<T>(MultiStateSheetExtent<T> extent) => clampDouble(
getComponentSize(extent, component) * size +
fraction * extent.availablePixels,
extent.minOffset,
extent.maxOffset,
);