NBContainer constructor Null safety

NBContainer(
  1. {double? sm,
  2. double? md,
  3. double? lg,
  4. double? xl}
)

Implementation

NBContainer({double? sm, double? md, double? lg, double? xl}) {
  if (sm != null) {
    _sm = sm;
  }
  if (md != null) {
    _md = md;
  }
  if (lg != null) {
    _lg = lg;
  }
  if (xl != null) {
    _xl = xl;
  }
}