Complete the code to initialize Firebase in a Flutter app.
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.[1]();
runApp(MyApp());
}The method initializeApp() is used to initialize Firebase before running the app.
Complete the code to sign in a user with email and password.
final userCredential = await FirebaseAuth.instance.[1]('user@example.com', 'password123');
The method signInWithEmailAndPassword signs in a user using email and password.
Fix the error in the code to sign out the current user.
await FirebaseAuth.instance.[1]();The correct method to sign out a user is signOut().
Fill both blanks to create a new user with email and password.
final userCredential = await FirebaseAuth.instance.[1]('[2]', 'mypassword');
Use createUserWithEmailAndPassword to register a new user, and provide a valid email like newuser@example.com.
Fill all three blanks to send a password reset email.
await FirebaseAuth.[1].sendPasswordResetEmail(email: '[2]'); print('[3]');
Use instance to access FirebaseAuth instance, provide the user's email, and print a confirmation message.
