getColumnsForScreenSize static method
Obtient le nombre de colonnes pour une taille d'écran
Implementation
static int getColumnsForScreenSize(SFScreenSize size) {
return switch (size) {
SFScreenSize.mobile => mobileColumns,
SFScreenSize.tablet => tabletColumns,
SFScreenSize.desktop => desktopColumns,
SFScreenSize.largeDesktop => largeDesktopColumns,
};
}