Changed CElement with CountryCode and fix error on favorite null
This commit is contained in:
26
lib/country_code.dart
Normal file
26
lib/country_code.dart
Normal file
@@ -0,0 +1,26 @@
|
||||
mixin ToAlias {}
|
||||
|
||||
@deprecated
|
||||
class CElement = CountryCode with ToAlias;
|
||||
|
||||
/// Country element. This is the element that contains all the information
|
||||
class CountryCode {
|
||||
/// the name of the country
|
||||
String name;
|
||||
|
||||
/// the flag of the country
|
||||
String flagUri;
|
||||
|
||||
/// the country code (IT,AF..)
|
||||
String code;
|
||||
|
||||
/// the dial code (+39,+93..)
|
||||
String dialCode;
|
||||
|
||||
CountryCode({this.name, this.flagUri, this.code, this.dialCode});
|
||||
|
||||
@override
|
||||
String toString() => "$dialCode";
|
||||
|
||||
String toLongString() => "$dialCode $name";
|
||||
}
|
||||
Reference in New Issue
Block a user