getColSpan method
Gets the number of columns to span based on the screen width.
width is the width of the screen.
Implementation
int getColSpan(double width) {
if (width >= 1200) {
return xl;
} else if (width >= 992) {
return lg;
} else if (width >= 768) {
return md;
} else {
return sm;
}
}