CloudFunctionService class Services Cloud Functions

A service for interacting with Firebase Functions.

The functions are distributed over mixins to keep the code organized. The mixins for this class are:

Mixed in types

Constructors

CloudFunctionService(FirebaseFunctions functionsInstance)

Properties

hashCode int
The hash code for this object.
no setterinherited
instance FirebaseFunctions
latefinalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAdmin(String? email) Future<HttpsCallableResult>
Adds an admin role to the user associated with email.
inherited
deleteUser(String email) Future<HttpsCallableResult>
Deletes the user associated with email.
inherited
enableUser(String email) Future<HttpsCallableResult>
Enables a user access to the app by updating their custom claims.
inherited
getUsers() Future<List<UserModel>>
Retrieve all users from the database.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareJson(Map json) Map<String, dynamic>
Prepare the JSON to be used in the UserModel.fromJson method.
inherited
removeAdmin(String email) Future<HttpsCallableResult>
Removes an admin role from the user associated with email.
inherited
renameUser(String email, String name) Future<HttpsCallableResult>
Renames the user associated with email to name.
inherited
sendAdminNotification(String message) Future<HttpsCallableResult>
Sends a notification with message to all users.
inherited
toString() String
A string representation of this object.
inherited
updateBirthday(UserModel user, String? birthday) Future<HttpsCallableResult>
Update the birthday of user.
inherited
updatePhoneNumber(UserModel user, String? phoneNumber) Future<HttpsCallableResult>
Update the phoneNumber of user.
inherited

Operators

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