S360fGridColSize constructor

S360fGridColSize({
  1. int? xs,
  2. int? sm,
  3. int? md,
  4. int? lg,
  5. int? xl,
  6. int? xxl,
})

Implementation

S360fGridColSize({this.xs, this.sm, this.md, this.lg, this.xl, this.xxl}) {
  // Find the smallest provided value to cascade downward
  final smallestProvided = _findSmallestProvidedValue();

  // Cascade values bidirectionally
  _xs = xs ?? _findNextLargerValue('xs') ?? smallestProvided;
  _sm = sm ?? _xs;
  _md = md ?? _sm;
  _lg = lg ?? _md;
  _xl = xl ?? _lg;
  _xxl = xxl ?? _xl;
}