Product constructor Null safety

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

Implementation

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