PractitionerGqlRepository class Null safety

Inheritance

Constructors

PractitionerGqlRepository(GraphQLClient graphQLClient, Logger? logger)

Properties

graphQLClient GraphQLClient
finalinherited
hashCode int
The hash code for this object.
read-onlyinherited
logger Logger?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

createPractitioner({required String firebaseUid}) Future<Practitioner?>
deleteProfile() Future<bool>
Deletes our user profile in the backend Returns true on success, false on error.
inherited
fetchUserId(String firebaseUid) Future<String?>
Utility function that fetches a user's ID based on a given patient instance. This is required because Strapi does not support direct access to the underlying User instance by a where clause. This method can be removed as soon as Strapi exposes a custom resolver to store the unified data structure. Returns null if the user instance could not be found.
inherited
getPractitioner({required String firebaseUid}) Future<Practitioner?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
setUserAvatar({required User user, required MediaAsset asset}) Future<bool>
Sets the referenced asset as avatar. The asset needs to be present in the CMS already. INTERNAL USE ONLY
inherited
setUserFcmToken({required User user, required String token}) Future<bool>
Updates the Firebase Cloud Messaging token for user. Returns true on success and false on error.
inherited
setUserInterests({required User user, required BuiltSet<LocalizedType<Interest>> interests}) Future<bool>
inherited
toString() String
A string representation of this object.
inherited
updateUserProfile(User user) Future<bool>
Updates the patient or supporter's profile data in the database, which is essentially all personal information except for linked data (such as supporters, interests, conditions). INTERNAL USE ONLY
inherited

Operators

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