-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to basic models from freezed #372
base: development
Are you sure you want to change the base?
Migrate to basic models from freezed #372
Conversation
…logging-auth-repo fix: add manual logging to auth repo
Signed-off-by: Isaac Obella <[email protected]>
Signed-off-by: Isaac Obella <[email protected]>
Signed-off-by: Isaac Obella <[email protected]>
Signed-off-by: Isaac Obella <[email protected]>
Signed-off-by: Isaac Obella <[email protected]>
59229d8
to
7e0deee
Compare
Codecov Report
@@ Coverage Diff @@
## development #372 +/- ##
===============================================
- Coverage 66.55% 62.39% -4.16%
===============================================
Files 157 195 +38
Lines 4010 4851 +841
===============================================
+ Hits 2669 3027 +358
- Misses 1341 1824 +483
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
await _mapUpdateProfilePhotoToState(emit, event), | ||
resendCode: (event) async => await _mapResendCodeToState(emit, event), | ||
); | ||
if (event is _InitialEvent) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This screams of Switch.
Maybe we can add a const to each event (parent class and need to override), eg.
const eventName = "SIGN_IN_WITH_PHONE";
const factory AuthEvent.initial() = _InitialEvent; | ||
|
||
const factory AuthEvent.verifyPhone(String phoneNumber) = _VerifyPhone; | ||
|
||
const factory AuthEvent.updated( | ||
Either<AuthFailure, AuthSuccess> failureOrCredential, | ||
Either<AuthFailure, $auth_success.AuthSuccess> failureOrCredential, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't it just be AuthSuccess
Signed-off-by: Isaac Obella [email protected]