Country class

Constructors

Country({String? name, String? dialCode, String? code})
const
Country.fromJson(String source)
It converts a JSON string into a Country object.
factory
Country.fromMap(Map<String, dynamic> map)
It creates a Country object from a map.
factory

Properties

code String?
final
dialCode String?
final
hashCode int
The hash code for this object.
no setterinherited
name String?
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
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 setter

Methods

copyWith({String? name, String? dialCode, String? code}) Country
copyWith is a function that returns a new instance of the class with the same properties as the original instance, except for the properties that are explicitly overridden
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
It converts the object to a map.
toMap() Map<String, dynamic>
It converts the object into a map.
toString() String
A string representation of this object.
inherited

Operators

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