currentUserUid function

String currentUserUid()

Returns the UID of the current user. If the current user is null, returns "null".

Implementation

String currentUserUid() => FirebaseAuth.instance.currentUser?.uid ?? "null";