SPContainerWidths constructor

const SPContainerWidths({
  1. double sm = 540,
  2. double md = 720,
  3. double lg = 960,
  4. double xl = 1140,
  5. double xxl = 1320,
})

Defaults match Bootstrap 5 container widths.

Implementation

const SPContainerWidths({
  this.sm = 540,
  this.md = 720,
  this.lg = 960,
  this.xl = 1140,
  this.xxl = 1320,
}) : assert(sm > 0, 'sm must be greater than zero.'),
     assert(md > sm, 'md must be greater than sm.'),
     assert(lg > md, 'lg must be greater than md.'),
     assert(xl > lg, 'xl must be greater than lg.'),
     assert(xxl > xl, 'xxl must be greater than xl.');