Country class
Country for phone numbers selection on login screen.
- Annotations
-
- @freezed
Constructors
- Country({@JsonKey(name: 'code') required String code, @JsonKey(name: 'iso') required String iso, @JsonKey(name: 'name') required String name, @Default(false) @JsonKey(name: 'default') bool? isDefault, @Default(false) @JsonKey(name: 'popular') bool? popular})
-
constfactory
-
Country.fromJson(Map<
String, dynamic> json) -
factory
Properties
- code → String
-
Phone code.
no setterinherited
-
copyWith
→ $CountryCopyWith<
Country> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDefault → bool?
-
Selected by default.
no setterinherited
- iso → String
-
Country ISO code.
no setterinherited
- name → String
-
Country name.
no setterinherited
- popular → bool?
-
Is popular, need to cache.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited