NBSizes constructor Null safety

NBSizes(
  1. {double? d3xs,
  2. double? d2xs,
  3. double? xs,
  4. double? sm,
  5. double? md,
  6. double? lg,
  7. double? xl,
  8. double? d2xl,
  9. NBSpaces? spaces,
  10. NBContainer? container}
)

Implementation

NBSizes(
    {double? d3xs,
    double? d2xs,
    double? xs,
    double? sm,
    double? md,
    double? lg,
    double? xl,
    double? d2xl,
    NBSpaces? spaces,
    NBContainer? container}) {
  if (d3xs != null) {
    _d3xs = d3xs;
  }
  if (d2xs != null) {
    _d2xs = d2xs;
  }
  if (xs != null) {
    _xs = xs;
  }
  if (sm != null) {
    _sm = sm;
  }
  if (md != null) {
    _md = md;
  }
  if (lg != null) {
    _lg = lg;
  }
  if (xl != null) {
    _xl = xl;
  }
  if (d2xl != null) {
    _d2xl = d2xl;
  }
  if (spaces != null) {
    _spaces = spaces;
  }
  if (_container != null) {
    _container = container;
  }
}