Skip to main content

User class

This class creates a User model and returns a user instance.

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>?

read / write

authTokenString?

read / write

boxBoxBase?

Get the box in which this object is stored. Returns null if object has not been added to a box yet.
read-onlyinherited

createdOrganizationsList<OrgInfo>?

read / write

emailString?

read / write

firstNameString?

read / write

hashCodeint

The hash code for this object.
read-onlyinherited

idString?

read / write

imageString?

read / write

isInBoxbool

Returns whether this object is currently stored in a box.
read-onlyinherited

joinedOrganizationsList<OrgInfo>?

read / write

key → dynamic

Get the key associated with this object. Returns null if object has not been added to a box yet.
read-onlyinherited

lastNameString?

read / write

membershipRequestsList<OrgInfo>?

read / write

refreshTokenString?

read / write

runtimeTypeType

A representation of the runtime type of the object.
read-onlyinherited

Methods

delete() Future<void>

Deletes this object from the box it is stored in.
inherited

noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed.
inherited

save() Future<void>

Persists this object.
inherited

toString() String

A string representation of this object.
inherited

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.
inherited