createAccount method

  1. @override
Future<void> createAccount(
  1. String email,
  2. String password, {
  3. String? displayName,
})
override

Creates a new user account with the given credentials

Implementation

@override
Future<void> createAccount(
  String email,
  String password, {
  String? displayName,
}) async {
  final credential =
      await _auth.createUserWithEmailAndPassword(email, password);

  credential.user; // ensure non-null
  if (!kIsDev) await signOut();
}