Country.fromMap constructor

Country.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory Country.fromMap(Map<String, dynamic> map) {
  return Country(
      name: map['name'].toString(),
      code: map['code'].toString(),
      dialCode: map['dial_code'].toString(),
      flagPath:
          'packages/extended_phone_number_input/assets/flags/${map['code']?.toLowerCase()}.png');
}