We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c98e38 commit d912f48Copy full SHA for d912f48
lib/authentication/bloc/authentication_state.dart
@@ -68,13 +68,15 @@ final class AuthenticationState extends Equatable {
68
String? email,
69
HttpException? exception,
70
DateTime? cooldownEndTime,
71
+ bool clearCooldownEndTime = false,
72
}) {
73
return AuthenticationState(
74
status: status ?? this.status,
75
user: user ?? this.user,
76
email: email ?? this.email,
77
exception: exception ?? this.exception,
- cooldownEndTime: cooldownEndTime ?? this.cooldownEndTime,
78
+ cooldownEndTime:
79
+ clearCooldownEndTime ? null : cooldownEndTime ?? this.cooldownEndTime,
80
);
81
}
82
0 commit comments