CountryModel class

Constructors

CountryModel({required String countryName, required Set<String> regions, required String iso2Code, required String intlDialCode, String flag = '🏳️', String? format = '... ... ... ...', int? orderPriority, Set<String>? areaCodes, String currentAreaCode = ''})
const

Properties

areaCodes Set<String>?
if >1 country with same dial code
final
countryName String
for ex. India/
final
currentAreaCode String
final
dialCode String
no setter
flag String
final
format String?
for ex. '.....-.....'/
final
hashCode int
The hash code for this object.
no setterinherited
intlDialCode String
for ex. 91/
final
iso2Code String
for ex. in/
final
orderPriority int?
if >1 country with same dial code
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
regions Set<String>
for ex. Asia/
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

copyWith({String? countryName, Set<String>? regions, String? iso2Code, String? flag, String? intlDialCode, String? format, int? orderPriority, Set<String>? areaCodes, String? currentAreaCode}) CountryModel
isContain(String value) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.

Operators

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