CityModel constructor Null safety

const CityModel(
  1. {int? id,
  2. String? name}
)

Implementation

const CityModel({
  this.id,
  this.name,
});