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(
fraction * extent.availablePixels +
getComponentOffsetFromTop(extent, component),
extent.minOffset,
extent.maxOffset,
);