FlexBuilderWidget constructor

FlexBuilderWidget({
  1. required FlexBuilder builder,
  2. int xs = 12,
  3. int xsOffset = 0,
  4. int? xsLand,
  5. int? xsLandOffset,
  6. int sm = 6,
  7. int smOffset = 0,
  8. int? smLand,
  9. int? smLandOffset,
  10. int md = 6,
  11. int mdOffset = 0,
  12. int? mdLand,
  13. int? mdLandOffset,
  14. int lg = 3,
  15. int lgOffset = 0,
  16. int? lgLand,
  17. int? lgLandOffset,
  18. int xl = 3,
  19. int xlOffset = 0,
  20. int? xlLand,
  21. int? xlLandOffset,
  22. int xxl = 3,
  23. int xxlOffset = 0,
  24. int? xxlLand,
  25. int? xxlLandOffset,
  26. int xxxl = 3,
  27. int xxxlOffset = 0,
  28. int? xxxlLand,
  29. int? xxxlLandOffset,
})

Implementation

FlexBuilderWidget({
  required this.builder,
  int xs = 12,
  int xsOffset = 0,
  int? xsLand,
  int? xsLandOffset,
  int sm = 6,
  int smOffset = 0,
  int? smLand,
  int? smLandOffset,
  int md = 6,
  int mdOffset = 0,
  int? mdLand,
  int? mdLandOffset,
  int lg = 3,
  int lgOffset = 0,
  int? lgLand,
  int? lgLandOffset,
  int xl = 3,
  int xlOffset = 0,
  int? xlLand,
  int? xlLandOffset,
  int xxl = 3,
  int xxlOffset = 0,
  int? xxlLand,
  int? xxlLandOffset,
  int xxxl = 3,
  int xxxlOffset = 0,
  int? xxxlLand,
  int? xxxlLandOffset,
}) {
  columns = FlexColumns(
    xs: xs,
    sm: sm,
    md: md,
    lg: lg,
    xl: xl,
    xxl: xxl,
    xxxl: xxxl,
  ).values;
  columnsLand = FlexColumns(
          xs: xsLand ?? xs,
          sm: smLand ?? sm,
          md: mdLand ?? md,
          lg: lgLand ?? lg,
          xl: xlLand ?? xl,
          xxl: xxlLand ?? xxl,
          xxxl: xxxlLand ?? xxxl)
      .values;
  offsets[Responsive.xs] = xsOffset;
  offsets[Responsive.sm] = smOffset;
  offsets[Responsive.md] = mdOffset;
  offsets[Responsive.lg] = lgOffset;
  offsets[Responsive.xl] = xlOffset;
  offsets[Responsive.xxl] = xxlOffset;
  offsets[Responsive.xxxl] = xxxlOffset;

  offsetsLand[Responsive.xs] = xsLandOffset ?? xsOffset;
  offsetsLand[Responsive.sm] = smLandOffset ?? smOffset;
  offsetsLand[Responsive.md] = mdLandOffset ?? mdOffset;
  offsetsLand[Responsive.lg] = lgLandOffset ?? lgOffset;
  offsetsLand[Responsive.xl] = xlLandOffset ?? xlOffset;
  offsetsLand[Responsive.xxl] = xxlLandOffset ?? xxlOffset;
  offsetsLand[Responsive.xxxl] = xxxlLandOffset ?? xxxlOffset;
}