FlexColumns constructor

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

Constructor

Implementation

FlexColumns(
    {required int xs, int? sm, int? md, int? lg, int? xl, int? xxl, int? xxxl}) {
  values[Responsive.xs] = xs;
  values[Responsive.sm] = sm ?? values[Responsive.xs];
  values[Responsive.md] = md ?? values[Responsive.sm];
  values[Responsive.lg] = lg ?? values[Responsive.md];
  values[Responsive.xl] = xl ?? values[Responsive.lg];
  values[Responsive.xxl] = xxl ?? values[Responsive.xl];
  values[Responsive.xxxl] = xxxl ?? values[Responsive.xxl];
}