getComponentSize<T> method
Gets the base size of the specified component relative to the extent's initial configuration.
extent: The available space and configuration of the MultiStateSheet.component: The component whose base size is requested.- Returns the base size of the specified component.
Implementation
double getComponentSize<T>(
MultiStateSheetExtent<T> extent, Components component) =>
switch (component) {
Components.header => extent.initialComponentSizes.header,
Components.top => extent.initialComponentSizes.topHeader,
Components.content => extent.initialComponentSizes.content,
Components.footer => extent.initialComponentSizes.footer,
};