City class

Represents a city with its details.

Constructors

City({required String name, required String population, required String area, required List<String> tehsils})
Constructs a City object.
City.fromMap(Map<String, String> map)
Factory method to create a City object from a Map.
factory

Properties

area String
Area of the city as a string.
final
hashCode int
The hash code for this object.
no setterinherited
name String
Name of the city.
final
population String
Population of the city as a string.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tehsils List<String>
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, String>
Converts the City object into a Map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited