codeFromCity method

String codeFromCity(
  1. String code
)

Implementation

String codeFromCity(String code) {
    return City.code.where((element) => element['code'] == code).firstOrNull?['city'] ?? '';
  }