Item constructor Null safety

Item(
  1. {int? id,
  2. String? name,
  3. List<Item>? childern,
  4. int? listType,
  5. String? imgUrl,
  6. String? imgThumbUrl,
  7. bool? hasFilter}
)

Implementation

Item({
  this.id,
  this.name,
  this.childern,
  this.listType,
  this.imgUrl,
  this.imgThumbUrl,
  this.hasFilter,
});