ListModel constructor Null safety

ListModel(
  1. {String? listType,
  2. int? listTypeId,
  3. int? languageId,
  4. int? minPrice,
  5. int? maxPrice,
  6. String? sortBy,
  7. String? keyword,
  8. List<int>? brandsIDs,
  9. List<int>? categoryIDs,
  10. List<int>? colorIDs,
  11. List<int>? sizeIDs,
  12. List<FeatureValue>? featureValues,
  13. bool? hasDiscount,
  14. int? storeId,
  15. int? zoneId,
  16. int? pageIndex,
  17. int? rowCount,
  18. String? sortProp,
  19. String? sortDir}
)

Implementation

ListModel({
  this.listType,
  this.listTypeId,
  this.languageId,
  this.minPrice,
  this.maxPrice,
  this.sortBy,
  this.keyword,
  this.brandsIDs,
  this.categoryIDs,
  this.colorIDs,
  this.sizeIDs,
  this.featureValues,
  this.hasDiscount,
  this.storeId,
  this.zoneId,
  this.pageIndex,
  this.rowCount,
  this.sortProp,
  this.sortDir,
});