Implementation
@override
FirestoreUser get model {
final isValid = !currentForm.hasErrors && currentForm.errors.isEmpty;
if (!isValid) {
debugPrintStack(
label:
'[${path ?? 'FirestoreUserForm'}]\nāā Avoid calling `model` on invalid form. Possible exceptions for non-nullable fields which should be guarded by `required` validator.');
}
return FirestoreUser(
uid: _uidValue,
email: _emailValue,
displayName: _displayNameValue,
photoURL: _photoURLValue,
creationTime: _creationTimeValue,
lastSignInTime: _lastSignInTimeValue);
}