currentUserName function

String currentUserName()

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

Implementation

String currentUserName() =>
    FirebaseAuth.instance.currentUser?.displayName ?? "null";