A mixin that contains functions for admin actions.
The functions are used in the CloudFunctionService class. You can call functions from this mixin as follows:
ref.read(cloudFunctionServiceProvider).enableUser(email);
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- instance ↔ FirebaseFunctions
-
latefinal
- 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. -
deleteUser(
String email) → Future< HttpsCallableResult> -
Deletes the user associated with
email. -
enableUser(
String email) → Future< HttpsCallableResult> - Enables a user access to the app by updating their custom claims.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAdmin(
String email) → Future< HttpsCallableResult> -
Removes an admin role from the user associated with
email. -
renameUser(
String email, String name) → Future< HttpsCallableResult> -
Renames the user associated with
emailtoname. -
sendAdminNotification(
String message) → Future< HttpsCallableResult> -
Sends a notification with
messageto all users. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited