isLoggedInUser static method
Returns true if the call is initiated by the logged in user.
Implementation
static bool isLoggedInUser(User? initiator, User? loggedInUser) {
if (initiator == null || loggedInUser == null) {
return false;
} else {
return initiator.uid == loggedInUser.uid;
}
}