Profile class abstract

Profile class, contains the infos of an user

Available extensions
Annotations
  • @freezed

Constructors

Profile.new({String? uid, String? givenName, String? middleName, String? familyName, String? name, String? nickname, String? birthdate, String? profileURL, String? picture, String? externalId, List<String>? authTypes, LoginSummary? loginSummary, String? username, String? gender, String? email, bool? emailVerified, Emails? emails, String? phoneNumber, bool? phoneNumberVerified, List<ProfileAddress>? addresses, String? locale, String? bio, Map<String, Object?>? customFields, Map<String, Consent>? consents, String? createdAt, String? updatedAt, bool? liteOnly, String? company})
Profile default constructor
const
factory

Properties

addresses List<ProfileAddress>?
The user list of addresses
no setterinherited
authTypes List<String>?
The user list of authentication types
no setterinherited
bio String?
The user bio
no setterinherited
birthdate String?
The user birthdate
no setterinherited
company String?
The user company
no setterinherited
consents Map<String, Consent>?
The user consents
no setterinherited
copyWith → $ProfileCopyWith<Profile>
Create a copy of Profile with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt String?
The time the user's profile was created
no setterinherited
customFields Map<String, Object?>?
The custom fields linked to your user It must match the ones you have created in your reachFive console
no setterinherited
email String?
The user email
no setterinherited
emails Emails?
The user list of verified/unverified emails
no setterinherited
emailVerified bool?
Used to check if an user email is verified or not
no setterinherited
externalId String?
The user external id
no setterinherited
familyName String?
The user family name
no setterinherited
gender String?
The user gender
no setterinherited
givenName String?
The user given name
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
liteOnly bool?
Used to know if the user profile is lite or not
no setterinherited
locale String?
The user locale
no setterinherited
loginSummary LoginSummary?
The user LoginSummary
no setterinherited
middleName String?
The user middle name
no setterinherited
name String?
The user name
no setterinherited
nickname String?
The user nickname
no setterinherited
phoneNumber String?
The user phone number
no setterinherited
phoneNumberVerified bool?
Used to check if an user phoneNumber is verified or not
no setterinherited
picture String?
The user picture
no setterinherited
profileURL String?
The user profile url
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uid String?
The user id
no setterinherited
updatedAt String?
The last time the user's profile was updated
no setterinherited
username String?
The user username
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_Profile value)) → TResult

Available on Profile, provided by the ProfilePatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_Profile value)?) → TResult?

Available on Profile, provided by the ProfilePatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_Profile value)?, {required TResult orElse()}) → TResult

Available on Profile, provided by the ProfilePatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String? uid, String? givenName, String? middleName, String? familyName, String? name, String? nickname, String? birthdate, String? profileURL, String? picture, String? externalId, List<String>? authTypes, LoginSummary? loginSummary, String? username, String? gender, String? email, bool? emailVerified, Emails? emails, String? phoneNumber, bool? phoneNumberVerified, List<ProfileAddress>? addresses, String? locale, String? bio, Map<String, Object?>? customFields, Map<String, Consent>? consents, String? createdAt, String? updatedAt, bool? liteOnly, String? company)?, {required TResult orElse()}) → TResult

Available on Profile, provided by the ProfilePatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String? uid, String? givenName, String? middleName, String? familyName, String? name, String? nickname, String? birthdate, String? profileURL, String? picture, String? externalId, List<String>? authTypes, LoginSummary? loginSummary, String? username, String? gender, String? email, bool? emailVerified, Emails? emails, String? phoneNumber, bool? phoneNumberVerified, List<ProfileAddress>? addresses, String? locale, String? bio, Map<String, Object?>? customFields, Map<String, Consent>? consents, String? createdAt, String? updatedAt, bool? liteOnly, String? company)) → TResult

Available on Profile, provided by the ProfilePatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String? uid, String? givenName, String? middleName, String? familyName, String? name, String? nickname, String? birthdate, String? profileURL, String? picture, String? externalId, List<String>? authTypes, LoginSummary? loginSummary, String? username, String? gender, String? email, bool? emailVerified, Emails? emails, String? phoneNumber, bool? phoneNumberVerified, List<ProfileAddress>? addresses, String? locale, String? bio, Map<String, Object?>? customFields, Map<String, Consent>? consents, String? createdAt, String? updatedAt, bool? liteOnly, String? company)?) → TResult?

Available on Profile, provided by the ProfilePatterns extension

A variant of when that fallback to returning null

Operators

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