mirror of
https://github.com/hmalik144/days_left_flutter.git
synced 2025-12-10 03:05:21 +00:00
- Implementation of firebase - Implementation of dependency injection Took 11 hours 26 minutes
27 lines
572 B
Dart
27 lines
572 B
Dart
|
|
class UserProfileDetails {
|
|
final String name;
|
|
final String dob;
|
|
final String postcode;
|
|
final String email;
|
|
final String phone;
|
|
final String sex;
|
|
|
|
UserProfileDetails(
|
|
this.name,
|
|
this.dob,
|
|
this.postcode,
|
|
this.email,
|
|
this.phone,
|
|
this.sex
|
|
);
|
|
|
|
UserProfileDetails.fromSnapshot(Map<dynamic, dynamic> snapshot) :
|
|
name = snapshot["name"],
|
|
dob = snapshot["dob"],
|
|
postcode = snapshot["postcode"],
|
|
email = snapshot["email"],
|
|
phone = snapshot["phone"],
|
|
sex = snapshot["sex"];
|
|
}
|