createUserWithEmailAndPassword static method
create User With Email And Password in Firebase Auth.
It can update user displayName, photoURL or other public data while register.
Implementation
static Future<UserCredential?> createUserWithEmailAndPassword({
required String email,
required String password,
bool isSuccessDialog = false,
bool isErrorDialog = true,
// Map<String, dynamic>? data,
// Map<String, dynamic>? public,
Function(UserCredential? userCredential)? onSuccess,
Function(String? code, String? message)? onError,
}) async =>
Auth.createUserWithEmailAndPassword(
email: email,
password: password,
// data: data,
// public: public,
isSuccessDialog: isSuccessDialog,
isErrorDialog: isErrorDialog,
onSuccess: onSuccess,
onError: onError,
);