Skip to main content

User class

<p>This class creates a User model and returns a user instance.</p>

Inheritance

Annotations

Constructors

User ({List<OrgInfo>? adminFor, List<OrgInfo>? createdOrganizations, String? email, String? firstName, String? id, String? image, List<OrgInfo>? joinedOrganizations, String? lastName, String? authToken, String? refreshToken, List<OrgInfo>? membershipRequests})

User.fromJson (Map<String, dynamic> json1, {bool fromOrg = false})

factory

Properties

adminForList<OrgInfo>?

<span class="feature">read / write</span>

authTokenString?

<span class="feature">read / write</span>

boxBoxBase?

Get the box in which this object is stored. Returns <code>null</code> if object has not been added to a box yet.
<span class="feature">read-only</span><span class="feature">inherited</span>

createdOrganizationsList<OrgInfo>?

<span class="feature">read / write</span>

emailString?

<span class="feature">read / write</span>

firstNameString?

<span class="feature">read / write</span>

hashCodeint

The hash code for this object.
<span class="feature">read-only</span><span class="feature">inherited</span>

idString?

<span class="feature">read / write</span>

imageString?

<span class="feature">read / write</span>

isInBoxbool

Returns whether this object is currently stored in a box.
<span class="feature">read-only</span><span class="feature">inherited</span>

joinedOrganizationsList<OrgInfo>?

<span class="feature">read / write</span>

key → dynamic

Get the key associated with this object. Returns <code>null</code> if object has not been added to a box yet.
<span class="feature">read-only</span><span class="feature">inherited</span>

lastNameString?

<span class="feature">read / write</span>

membershipRequestsList<OrgInfo>?

<span class="feature">read / write</span>

refreshTokenString?

<span class="feature">read / write</span>

runtimeTypeType

A representation of the runtime type of the object.
<span class="feature">read-only</span><span class="feature">inherited</span>

Methods

delete() Future<void>

Deletes this object from the box it is stored in.
<span class="feature">inherited</span>

noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed.
<span class="feature">inherited</span>

save() Future<void>

Persists this object.
<span class="feature">inherited</span>

toString() String

A string representation of this object.
<span class="feature">inherited</span>

update(User details) void
updateAdminFor(List<OrgInfo> orgList) void
updateCreatedOrg(List<OrgInfo> orgList) void
updateJoinedOrg(List<OrgInfo> orgList) void
updateMemberRequestOrg(List<OrgInfo> orgList) void

Operators

operator ==(Object other) bool

The equality operator.
<span class="feature">inherited</span>