City constructor

City({
  1. required String name,
  2. required String population,
  3. required String area,
  4. required List<String> tehsils,
})

Constructs a City object.

All fields are required and must be provided during object creation.

Implementation

City({
  required this.name,
  required this.population,
  required this.area,
  required this.tehsils,
});