SupporterRequestGqlRepository class Null safety

Constructors

SupporterRequestGqlRepository(GraphQLClient graphQLClient, Logger? logger)

Properties

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

Methods

createSupporterRequest() Future<SupporterRequest?>
Creates a new supporter request token. Returns null if the request failed. Returns a SupporterRequest entity on success. A user logged in as a supporter can use the token contained in that entity to establish a link with the patient who originally created the token.
findRequestByToken(String token) Future<SupporterRequest?>
Finds a supporter request that's linked to a given token. Returns null if no request exists for this token or returns a valid instance of SupporterRequest in case the request exists. Use the request instance with resolveSupporterRequest to trade the token for a patient-supporter link. This method is only successful if executed by a patient.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
resolveSupporterRequest(String token) Future<Patient?>
Resolves a supporter request. Returns false if resolving failed. Returns true if resolving worked. In case of success, the currently logged in supporter will be linked to the patient who originally issued the token. This method can only be called when logged in as a supporter.
toString() String
A string representation of this object.
inherited

Operators

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