Flutter Android Firebase authentication Error, The Authentication passes through but error in the terminal although the Application does not fail
[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: NoSuchMethodError: The getter 'uid' was called on null.
The Error seems to be coming from this Line of code
Future<String> currentUser() async {
FirebaseUser user = await _firebaseAuth.currentUser();
return user.uid;
}