getProvince function

String? getProvince(
  1. String city
)

Returns the province for a Pakistani city name.

Matching is case-insensitive and ignores inconsistent spacing. Returns null when no exact city match is found.

Implementation

String? getProvince(String city) {
  final key = normalizeKey(city);
  if (key.isEmpty) return null;
  return _cityLookup[key];
}