Product constructor Null safety

Product(
  1. {required String productId,
  2. String? name,
  3. String? description,
  4. List<ProductUnit>? units}
)

Implementation

Product({
  required this.productId,
  this.name,
  this.description,
  this.units,
});