|
|
|
@@ -19,12 +19,12 @@ mixin _$AuthEvent {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function() started,
|
|
|
|
|
required TResult Function(String email, String password) loginRequested,
|
|
|
|
|
required TResult Function(String email, String password, String name)
|
|
|
|
|
required TResult Function(String username, String password) loginRequested,
|
|
|
|
|
required TResult Function(String username, String password, String name)
|
|
|
|
|
registerRequested,
|
|
|
|
|
required TResult Function() logoutRequested,
|
|
|
|
|
required TResult Function() authChecked,
|
|
|
|
|
required TResult Function(String email) emailChanged,
|
|
|
|
|
required TResult Function(String username) usernameChanged,
|
|
|
|
|
required TResult Function(String password) passwordChanged,
|
|
|
|
|
required TResult Function(String name) nameChanged,
|
|
|
|
|
}) =>
|
|
|
|
@@ -32,12 +32,12 @@ mixin _$AuthEvent {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function()? started,
|
|
|
|
|
TResult? Function(String email, String password)? loginRequested,
|
|
|
|
|
TResult? Function(String email, String password, String name)?
|
|
|
|
|
TResult? Function(String username, String password)? loginRequested,
|
|
|
|
|
TResult? Function(String username, String password, String name)?
|
|
|
|
|
registerRequested,
|
|
|
|
|
TResult? Function()? logoutRequested,
|
|
|
|
|
TResult? Function()? authChecked,
|
|
|
|
|
TResult? Function(String email)? emailChanged,
|
|
|
|
|
TResult? Function(String username)? usernameChanged,
|
|
|
|
|
TResult? Function(String password)? passwordChanged,
|
|
|
|
|
TResult? Function(String name)? nameChanged,
|
|
|
|
|
}) =>
|
|
|
|
@@ -45,12 +45,12 @@ mixin _$AuthEvent {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function()? started,
|
|
|
|
|
TResult Function(String email, String password)? loginRequested,
|
|
|
|
|
TResult Function(String email, String password, String name)?
|
|
|
|
|
TResult Function(String username, String password)? loginRequested,
|
|
|
|
|
TResult Function(String username, String password, String name)?
|
|
|
|
|
registerRequested,
|
|
|
|
|
TResult Function()? logoutRequested,
|
|
|
|
|
TResult Function()? authChecked,
|
|
|
|
|
TResult Function(String email)? emailChanged,
|
|
|
|
|
TResult Function(String username)? usernameChanged,
|
|
|
|
|
TResult Function(String password)? passwordChanged,
|
|
|
|
|
TResult Function(String name)? nameChanged,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
@@ -64,7 +64,7 @@ mixin _$AuthEvent {
|
|
|
|
|
registerRequested,
|
|
|
|
|
required TResult Function(AuthEventLogoutRequested value) logoutRequested,
|
|
|
|
|
required TResult Function(AuthEventAuthChecked value) authChecked,
|
|
|
|
|
required TResult Function(AuthEventEmailChanged value) emailChanged,
|
|
|
|
|
required TResult Function(AuthEventUsernameChanged value) usernameChanged,
|
|
|
|
|
required TResult Function(AuthEventPasswordChanged value) passwordChanged,
|
|
|
|
|
required TResult Function(AuthEventNameChanged value) nameChanged,
|
|
|
|
|
}) =>
|
|
|
|
@@ -76,7 +76,7 @@ mixin _$AuthEvent {
|
|
|
|
|
TResult? Function(AuthEventRegisterRequested value)? registerRequested,
|
|
|
|
|
TResult? Function(AuthEventLogoutRequested value)? logoutRequested,
|
|
|
|
|
TResult? Function(AuthEventAuthChecked value)? authChecked,
|
|
|
|
|
TResult? Function(AuthEventEmailChanged value)? emailChanged,
|
|
|
|
|
TResult? Function(AuthEventUsernameChanged value)? usernameChanged,
|
|
|
|
|
TResult? Function(AuthEventPasswordChanged value)? passwordChanged,
|
|
|
|
|
TResult? Function(AuthEventNameChanged value)? nameChanged,
|
|
|
|
|
}) =>
|
|
|
|
@@ -88,7 +88,7 @@ mixin _$AuthEvent {
|
|
|
|
|
TResult Function(AuthEventRegisterRequested value)? registerRequested,
|
|
|
|
|
TResult Function(AuthEventLogoutRequested value)? logoutRequested,
|
|
|
|
|
TResult Function(AuthEventAuthChecked value)? authChecked,
|
|
|
|
|
TResult Function(AuthEventEmailChanged value)? emailChanged,
|
|
|
|
|
TResult Function(AuthEventUsernameChanged value)? usernameChanged,
|
|
|
|
|
TResult Function(AuthEventPasswordChanged value)? passwordChanged,
|
|
|
|
|
TResult Function(AuthEventNameChanged value)? nameChanged,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
@@ -152,12 +152,12 @@ class _$AuthEventStartedImpl implements AuthEventStarted {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function() started,
|
|
|
|
|
required TResult Function(String email, String password) loginRequested,
|
|
|
|
|
required TResult Function(String email, String password, String name)
|
|
|
|
|
required TResult Function(String username, String password) loginRequested,
|
|
|
|
|
required TResult Function(String username, String password, String name)
|
|
|
|
|
registerRequested,
|
|
|
|
|
required TResult Function() logoutRequested,
|
|
|
|
|
required TResult Function() authChecked,
|
|
|
|
|
required TResult Function(String email) emailChanged,
|
|
|
|
|
required TResult Function(String username) usernameChanged,
|
|
|
|
|
required TResult Function(String password) passwordChanged,
|
|
|
|
|
required TResult Function(String name) nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -168,12 +168,12 @@ class _$AuthEventStartedImpl implements AuthEventStarted {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function()? started,
|
|
|
|
|
TResult? Function(String email, String password)? loginRequested,
|
|
|
|
|
TResult? Function(String email, String password, String name)?
|
|
|
|
|
TResult? Function(String username, String password)? loginRequested,
|
|
|
|
|
TResult? Function(String username, String password, String name)?
|
|
|
|
|
registerRequested,
|
|
|
|
|
TResult? Function()? logoutRequested,
|
|
|
|
|
TResult? Function()? authChecked,
|
|
|
|
|
TResult? Function(String email)? emailChanged,
|
|
|
|
|
TResult? Function(String username)? usernameChanged,
|
|
|
|
|
TResult? Function(String password)? passwordChanged,
|
|
|
|
|
TResult? Function(String name)? nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -184,12 +184,12 @@ class _$AuthEventStartedImpl implements AuthEventStarted {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function()? started,
|
|
|
|
|
TResult Function(String email, String password)? loginRequested,
|
|
|
|
|
TResult Function(String email, String password, String name)?
|
|
|
|
|
TResult Function(String username, String password)? loginRequested,
|
|
|
|
|
TResult Function(String username, String password, String name)?
|
|
|
|
|
registerRequested,
|
|
|
|
|
TResult Function()? logoutRequested,
|
|
|
|
|
TResult Function()? authChecked,
|
|
|
|
|
TResult Function(String email)? emailChanged,
|
|
|
|
|
TResult Function(String username)? usernameChanged,
|
|
|
|
|
TResult Function(String password)? passwordChanged,
|
|
|
|
|
TResult Function(String name)? nameChanged,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
@@ -209,7 +209,7 @@ class _$AuthEventStartedImpl implements AuthEventStarted {
|
|
|
|
|
registerRequested,
|
|
|
|
|
required TResult Function(AuthEventLogoutRequested value) logoutRequested,
|
|
|
|
|
required TResult Function(AuthEventAuthChecked value) authChecked,
|
|
|
|
|
required TResult Function(AuthEventEmailChanged value) emailChanged,
|
|
|
|
|
required TResult Function(AuthEventUsernameChanged value) usernameChanged,
|
|
|
|
|
required TResult Function(AuthEventPasswordChanged value) passwordChanged,
|
|
|
|
|
required TResult Function(AuthEventNameChanged value) nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -224,7 +224,7 @@ class _$AuthEventStartedImpl implements AuthEventStarted {
|
|
|
|
|
TResult? Function(AuthEventRegisterRequested value)? registerRequested,
|
|
|
|
|
TResult? Function(AuthEventLogoutRequested value)? logoutRequested,
|
|
|
|
|
TResult? Function(AuthEventAuthChecked value)? authChecked,
|
|
|
|
|
TResult? Function(AuthEventEmailChanged value)? emailChanged,
|
|
|
|
|
TResult? Function(AuthEventUsernameChanged value)? usernameChanged,
|
|
|
|
|
TResult? Function(AuthEventPasswordChanged value)? passwordChanged,
|
|
|
|
|
TResult? Function(AuthEventNameChanged value)? nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -239,7 +239,7 @@ class _$AuthEventStartedImpl implements AuthEventStarted {
|
|
|
|
|
TResult Function(AuthEventRegisterRequested value)? registerRequested,
|
|
|
|
|
TResult Function(AuthEventLogoutRequested value)? logoutRequested,
|
|
|
|
|
TResult Function(AuthEventAuthChecked value)? authChecked,
|
|
|
|
|
TResult Function(AuthEventEmailChanged value)? emailChanged,
|
|
|
|
|
TResult Function(AuthEventUsernameChanged value)? usernameChanged,
|
|
|
|
|
TResult Function(AuthEventPasswordChanged value)? passwordChanged,
|
|
|
|
|
TResult Function(AuthEventNameChanged value)? nameChanged,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
@@ -262,7 +262,7 @@ abstract class _$$AuthEventLoginRequestedImplCopyWith<$Res> {
|
|
|
|
|
$Res Function(_$AuthEventLoginRequestedImpl) then) =
|
|
|
|
|
__$$AuthEventLoginRequestedImplCopyWithImpl<$Res>;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({String email, String password});
|
|
|
|
|
$Res call({String username, String password});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
@@ -277,13 +277,13 @@ class __$$AuthEventLoginRequestedImplCopyWithImpl<$Res>
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? email = null,
|
|
|
|
|
Object? username = null,
|
|
|
|
|
Object? password = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(_$AuthEventLoginRequestedImpl(
|
|
|
|
|
null == email
|
|
|
|
|
? _value.email
|
|
|
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
null == username
|
|
|
|
|
? _value.username
|
|
|
|
|
: username // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
null == password
|
|
|
|
|
? _value.password
|
|
|
|
@@ -296,16 +296,16 @@ class __$$AuthEventLoginRequestedImplCopyWithImpl<$Res>
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
class _$AuthEventLoginRequestedImpl implements AuthEventLoginRequested {
|
|
|
|
|
const _$AuthEventLoginRequestedImpl(this.email, this.password);
|
|
|
|
|
const _$AuthEventLoginRequestedImpl(this.username, this.password);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
final String email;
|
|
|
|
|
final String username;
|
|
|
|
|
@override
|
|
|
|
|
final String password;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'AuthEvent.loginRequested(email: $email, password: $password)';
|
|
|
|
|
return 'AuthEvent.loginRequested(username: $username, password: $password)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@@ -313,13 +313,14 @@ class _$AuthEventLoginRequestedImpl implements AuthEventLoginRequested {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
|
|
other is _$AuthEventLoginRequestedImpl &&
|
|
|
|
|
(identical(other.email, email) || other.email == email) &&
|
|
|
|
|
(identical(other.username, username) ||
|
|
|
|
|
other.username == username) &&
|
|
|
|
|
(identical(other.password, password) ||
|
|
|
|
|
other.password == password));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(runtimeType, email, password);
|
|
|
|
|
int get hashCode => Object.hash(runtimeType, username, password);
|
|
|
|
|
|
|
|
|
|
@JsonKey(ignore: true)
|
|
|
|
|
@override
|
|
|
|
@@ -332,50 +333,50 @@ class _$AuthEventLoginRequestedImpl implements AuthEventLoginRequested {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function() started,
|
|
|
|
|
required TResult Function(String email, String password) loginRequested,
|
|
|
|
|
required TResult Function(String email, String password, String name)
|
|
|
|
|
required TResult Function(String username, String password) loginRequested,
|
|
|
|
|
required TResult Function(String username, String password, String name)
|
|
|
|
|
registerRequested,
|
|
|
|
|
required TResult Function() logoutRequested,
|
|
|
|
|
required TResult Function() authChecked,
|
|
|
|
|
required TResult Function(String email) emailChanged,
|
|
|
|
|
required TResult Function(String username) usernameChanged,
|
|
|
|
|
required TResult Function(String password) passwordChanged,
|
|
|
|
|
required TResult Function(String name) nameChanged,
|
|
|
|
|
}) {
|
|
|
|
|
return loginRequested(email, password);
|
|
|
|
|
return loginRequested(username, password);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function()? started,
|
|
|
|
|
TResult? Function(String email, String password)? loginRequested,
|
|
|
|
|
TResult? Function(String email, String password, String name)?
|
|
|
|
|
TResult? Function(String username, String password)? loginRequested,
|
|
|
|
|
TResult? Function(String username, String password, String name)?
|
|
|
|
|
registerRequested,
|
|
|
|
|
TResult? Function()? logoutRequested,
|
|
|
|
|
TResult? Function()? authChecked,
|
|
|
|
|
TResult? Function(String email)? emailChanged,
|
|
|
|
|
TResult? Function(String username)? usernameChanged,
|
|
|
|
|
TResult? Function(String password)? passwordChanged,
|
|
|
|
|
TResult? Function(String name)? nameChanged,
|
|
|
|
|
}) {
|
|
|
|
|
return loginRequested?.call(email, password);
|
|
|
|
|
return loginRequested?.call(username, password);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function()? started,
|
|
|
|
|
TResult Function(String email, String password)? loginRequested,
|
|
|
|
|
TResult Function(String email, String password, String name)?
|
|
|
|
|
TResult Function(String username, String password)? loginRequested,
|
|
|
|
|
TResult Function(String username, String password, String name)?
|
|
|
|
|
registerRequested,
|
|
|
|
|
TResult Function()? logoutRequested,
|
|
|
|
|
TResult Function()? authChecked,
|
|
|
|
|
TResult Function(String email)? emailChanged,
|
|
|
|
|
TResult Function(String username)? usernameChanged,
|
|
|
|
|
TResult Function(String password)? passwordChanged,
|
|
|
|
|
TResult Function(String name)? nameChanged,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (loginRequested != null) {
|
|
|
|
|
return loginRequested(email, password);
|
|
|
|
|
return loginRequested(username, password);
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
@@ -389,7 +390,7 @@ class _$AuthEventLoginRequestedImpl implements AuthEventLoginRequested {
|
|
|
|
|
registerRequested,
|
|
|
|
|
required TResult Function(AuthEventLogoutRequested value) logoutRequested,
|
|
|
|
|
required TResult Function(AuthEventAuthChecked value) authChecked,
|
|
|
|
|
required TResult Function(AuthEventEmailChanged value) emailChanged,
|
|
|
|
|
required TResult Function(AuthEventUsernameChanged value) usernameChanged,
|
|
|
|
|
required TResult Function(AuthEventPasswordChanged value) passwordChanged,
|
|
|
|
|
required TResult Function(AuthEventNameChanged value) nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -404,7 +405,7 @@ class _$AuthEventLoginRequestedImpl implements AuthEventLoginRequested {
|
|
|
|
|
TResult? Function(AuthEventRegisterRequested value)? registerRequested,
|
|
|
|
|
TResult? Function(AuthEventLogoutRequested value)? logoutRequested,
|
|
|
|
|
TResult? Function(AuthEventAuthChecked value)? authChecked,
|
|
|
|
|
TResult? Function(AuthEventEmailChanged value)? emailChanged,
|
|
|
|
|
TResult? Function(AuthEventUsernameChanged value)? usernameChanged,
|
|
|
|
|
TResult? Function(AuthEventPasswordChanged value)? passwordChanged,
|
|
|
|
|
TResult? Function(AuthEventNameChanged value)? nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -419,7 +420,7 @@ class _$AuthEventLoginRequestedImpl implements AuthEventLoginRequested {
|
|
|
|
|
TResult Function(AuthEventRegisterRequested value)? registerRequested,
|
|
|
|
|
TResult Function(AuthEventLogoutRequested value)? logoutRequested,
|
|
|
|
|
TResult Function(AuthEventAuthChecked value)? authChecked,
|
|
|
|
|
TResult Function(AuthEventEmailChanged value)? emailChanged,
|
|
|
|
|
TResult Function(AuthEventUsernameChanged value)? usernameChanged,
|
|
|
|
|
TResult Function(AuthEventPasswordChanged value)? passwordChanged,
|
|
|
|
|
TResult Function(AuthEventNameChanged value)? nameChanged,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
@@ -433,10 +434,10 @@ class _$AuthEventLoginRequestedImpl implements AuthEventLoginRequested {
|
|
|
|
|
|
|
|
|
|
abstract class AuthEventLoginRequested implements AuthEvent {
|
|
|
|
|
const factory AuthEventLoginRequested(
|
|
|
|
|
final String email, final String password) =
|
|
|
|
|
final String username, final String password) =
|
|
|
|
|
_$AuthEventLoginRequestedImpl;
|
|
|
|
|
|
|
|
|
|
String get email;
|
|
|
|
|
String get username;
|
|
|
|
|
String get password;
|
|
|
|
|
@JsonKey(ignore: true)
|
|
|
|
|
_$$AuthEventLoginRequestedImplCopyWith<_$AuthEventLoginRequestedImpl>
|
|
|
|
@@ -450,7 +451,7 @@ abstract class _$$AuthEventRegisterRequestedImplCopyWith<$Res> {
|
|
|
|
|
$Res Function(_$AuthEventRegisterRequestedImpl) then) =
|
|
|
|
|
__$$AuthEventRegisterRequestedImplCopyWithImpl<$Res>;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({String email, String password, String name});
|
|
|
|
|
$Res call({String username, String password, String name});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
@@ -465,14 +466,14 @@ class __$$AuthEventRegisterRequestedImplCopyWithImpl<$Res>
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? email = null,
|
|
|
|
|
Object? username = null,
|
|
|
|
|
Object? password = null,
|
|
|
|
|
Object? name = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(_$AuthEventRegisterRequestedImpl(
|
|
|
|
|
null == email
|
|
|
|
|
? _value.email
|
|
|
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
null == username
|
|
|
|
|
? _value.username
|
|
|
|
|
: username // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
null == password
|
|
|
|
|
? _value.password
|
|
|
|
@@ -489,10 +490,11 @@ class __$$AuthEventRegisterRequestedImplCopyWithImpl<$Res>
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
class _$AuthEventRegisterRequestedImpl implements AuthEventRegisterRequested {
|
|
|
|
|
const _$AuthEventRegisterRequestedImpl(this.email, this.password, this.name);
|
|
|
|
|
const _$AuthEventRegisterRequestedImpl(
|
|
|
|
|
this.username, this.password, this.name);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
final String email;
|
|
|
|
|
final String username;
|
|
|
|
|
@override
|
|
|
|
|
final String password;
|
|
|
|
|
@override
|
|
|
|
@@ -500,7 +502,7 @@ class _$AuthEventRegisterRequestedImpl implements AuthEventRegisterRequested {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'AuthEvent.registerRequested(email: $email, password: $password, name: $name)';
|
|
|
|
|
return 'AuthEvent.registerRequested(username: $username, password: $password, name: $name)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@@ -508,14 +510,15 @@ class _$AuthEventRegisterRequestedImpl implements AuthEventRegisterRequested {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
|
|
other is _$AuthEventRegisterRequestedImpl &&
|
|
|
|
|
(identical(other.email, email) || other.email == email) &&
|
|
|
|
|
(identical(other.username, username) ||
|
|
|
|
|
other.username == username) &&
|
|
|
|
|
(identical(other.password, password) ||
|
|
|
|
|
other.password == password) &&
|
|
|
|
|
(identical(other.name, name) || other.name == name));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(runtimeType, email, password, name);
|
|
|
|
|
int get hashCode => Object.hash(runtimeType, username, password, name);
|
|
|
|
|
|
|
|
|
|
@JsonKey(ignore: true)
|
|
|
|
|
@override
|
|
|
|
@@ -528,50 +531,50 @@ class _$AuthEventRegisterRequestedImpl implements AuthEventRegisterRequested {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function() started,
|
|
|
|
|
required TResult Function(String email, String password) loginRequested,
|
|
|
|
|
required TResult Function(String email, String password, String name)
|
|
|
|
|
required TResult Function(String username, String password) loginRequested,
|
|
|
|
|
required TResult Function(String username, String password, String name)
|
|
|
|
|
registerRequested,
|
|
|
|
|
required TResult Function() logoutRequested,
|
|
|
|
|
required TResult Function() authChecked,
|
|
|
|
|
required TResult Function(String email) emailChanged,
|
|
|
|
|
required TResult Function(String username) usernameChanged,
|
|
|
|
|
required TResult Function(String password) passwordChanged,
|
|
|
|
|
required TResult Function(String name) nameChanged,
|
|
|
|
|
}) {
|
|
|
|
|
return registerRequested(email, password, name);
|
|
|
|
|
return registerRequested(username, password, name);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function()? started,
|
|
|
|
|
TResult? Function(String email, String password)? loginRequested,
|
|
|
|
|
TResult? Function(String email, String password, String name)?
|
|
|
|
|
TResult? Function(String username, String password)? loginRequested,
|
|
|
|
|
TResult? Function(String username, String password, String name)?
|
|
|
|
|
registerRequested,
|
|
|
|
|
TResult? Function()? logoutRequested,
|
|
|
|
|
TResult? Function()? authChecked,
|
|
|
|
|
TResult? Function(String email)? emailChanged,
|
|
|
|
|
TResult? Function(String username)? usernameChanged,
|
|
|
|
|
TResult? Function(String password)? passwordChanged,
|
|
|
|
|
TResult? Function(String name)? nameChanged,
|
|
|
|
|
}) {
|
|
|
|
|
return registerRequested?.call(email, password, name);
|
|
|
|
|
return registerRequested?.call(username, password, name);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function()? started,
|
|
|
|
|
TResult Function(String email, String password)? loginRequested,
|
|
|
|
|
TResult Function(String email, String password, String name)?
|
|
|
|
|
TResult Function(String username, String password)? loginRequested,
|
|
|
|
|
TResult Function(String username, String password, String name)?
|
|
|
|
|
registerRequested,
|
|
|
|
|
TResult Function()? logoutRequested,
|
|
|
|
|
TResult Function()? authChecked,
|
|
|
|
|
TResult Function(String email)? emailChanged,
|
|
|
|
|
TResult Function(String username)? usernameChanged,
|
|
|
|
|
TResult Function(String password)? passwordChanged,
|
|
|
|
|
TResult Function(String name)? nameChanged,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (registerRequested != null) {
|
|
|
|
|
return registerRequested(email, password, name);
|
|
|
|
|
return registerRequested(username, password, name);
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
@@ -585,7 +588,7 @@ class _$AuthEventRegisterRequestedImpl implements AuthEventRegisterRequested {
|
|
|
|
|
registerRequested,
|
|
|
|
|
required TResult Function(AuthEventLogoutRequested value) logoutRequested,
|
|
|
|
|
required TResult Function(AuthEventAuthChecked value) authChecked,
|
|
|
|
|
required TResult Function(AuthEventEmailChanged value) emailChanged,
|
|
|
|
|
required TResult Function(AuthEventUsernameChanged value) usernameChanged,
|
|
|
|
|
required TResult Function(AuthEventPasswordChanged value) passwordChanged,
|
|
|
|
|
required TResult Function(AuthEventNameChanged value) nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -600,7 +603,7 @@ class _$AuthEventRegisterRequestedImpl implements AuthEventRegisterRequested {
|
|
|
|
|
TResult? Function(AuthEventRegisterRequested value)? registerRequested,
|
|
|
|
|
TResult? Function(AuthEventLogoutRequested value)? logoutRequested,
|
|
|
|
|
TResult? Function(AuthEventAuthChecked value)? authChecked,
|
|
|
|
|
TResult? Function(AuthEventEmailChanged value)? emailChanged,
|
|
|
|
|
TResult? Function(AuthEventUsernameChanged value)? usernameChanged,
|
|
|
|
|
TResult? Function(AuthEventPasswordChanged value)? passwordChanged,
|
|
|
|
|
TResult? Function(AuthEventNameChanged value)? nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -615,7 +618,7 @@ class _$AuthEventRegisterRequestedImpl implements AuthEventRegisterRequested {
|
|
|
|
|
TResult Function(AuthEventRegisterRequested value)? registerRequested,
|
|
|
|
|
TResult Function(AuthEventLogoutRequested value)? logoutRequested,
|
|
|
|
|
TResult Function(AuthEventAuthChecked value)? authChecked,
|
|
|
|
|
TResult Function(AuthEventEmailChanged value)? emailChanged,
|
|
|
|
|
TResult Function(AuthEventUsernameChanged value)? usernameChanged,
|
|
|
|
|
TResult Function(AuthEventPasswordChanged value)? passwordChanged,
|
|
|
|
|
TResult Function(AuthEventNameChanged value)? nameChanged,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
@@ -629,10 +632,10 @@ class _$AuthEventRegisterRequestedImpl implements AuthEventRegisterRequested {
|
|
|
|
|
|
|
|
|
|
abstract class AuthEventRegisterRequested implements AuthEvent {
|
|
|
|
|
const factory AuthEventRegisterRequested(
|
|
|
|
|
final String email, final String password, final String name) =
|
|
|
|
|
final String username, final String password, final String name) =
|
|
|
|
|
_$AuthEventRegisterRequestedImpl;
|
|
|
|
|
|
|
|
|
|
String get email;
|
|
|
|
|
String get username;
|
|
|
|
|
String get password;
|
|
|
|
|
String get name;
|
|
|
|
|
@JsonKey(ignore: true)
|
|
|
|
@@ -682,12 +685,12 @@ class _$AuthEventLogoutRequestedImpl implements AuthEventLogoutRequested {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function() started,
|
|
|
|
|
required TResult Function(String email, String password) loginRequested,
|
|
|
|
|
required TResult Function(String email, String password, String name)
|
|
|
|
|
required TResult Function(String username, String password) loginRequested,
|
|
|
|
|
required TResult Function(String username, String password, String name)
|
|
|
|
|
registerRequested,
|
|
|
|
|
required TResult Function() logoutRequested,
|
|
|
|
|
required TResult Function() authChecked,
|
|
|
|
|
required TResult Function(String email) emailChanged,
|
|
|
|
|
required TResult Function(String username) usernameChanged,
|
|
|
|
|
required TResult Function(String password) passwordChanged,
|
|
|
|
|
required TResult Function(String name) nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -698,12 +701,12 @@ class _$AuthEventLogoutRequestedImpl implements AuthEventLogoutRequested {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function()? started,
|
|
|
|
|
TResult? Function(String email, String password)? loginRequested,
|
|
|
|
|
TResult? Function(String email, String password, String name)?
|
|
|
|
|
TResult? Function(String username, String password)? loginRequested,
|
|
|
|
|
TResult? Function(String username, String password, String name)?
|
|
|
|
|
registerRequested,
|
|
|
|
|
TResult? Function()? logoutRequested,
|
|
|
|
|
TResult? Function()? authChecked,
|
|
|
|
|
TResult? Function(String email)? emailChanged,
|
|
|
|
|
TResult? Function(String username)? usernameChanged,
|
|
|
|
|
TResult? Function(String password)? passwordChanged,
|
|
|
|
|
TResult? Function(String name)? nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -714,12 +717,12 @@ class _$AuthEventLogoutRequestedImpl implements AuthEventLogoutRequested {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function()? started,
|
|
|
|
|
TResult Function(String email, String password)? loginRequested,
|
|
|
|
|
TResult Function(String email, String password, String name)?
|
|
|
|
|
TResult Function(String username, String password)? loginRequested,
|
|
|
|
|
TResult Function(String username, String password, String name)?
|
|
|
|
|
registerRequested,
|
|
|
|
|
TResult Function()? logoutRequested,
|
|
|
|
|
TResult Function()? authChecked,
|
|
|
|
|
TResult Function(String email)? emailChanged,
|
|
|
|
|
TResult Function(String username)? usernameChanged,
|
|
|
|
|
TResult Function(String password)? passwordChanged,
|
|
|
|
|
TResult Function(String name)? nameChanged,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
@@ -739,7 +742,7 @@ class _$AuthEventLogoutRequestedImpl implements AuthEventLogoutRequested {
|
|
|
|
|
registerRequested,
|
|
|
|
|
required TResult Function(AuthEventLogoutRequested value) logoutRequested,
|
|
|
|
|
required TResult Function(AuthEventAuthChecked value) authChecked,
|
|
|
|
|
required TResult Function(AuthEventEmailChanged value) emailChanged,
|
|
|
|
|
required TResult Function(AuthEventUsernameChanged value) usernameChanged,
|
|
|
|
|
required TResult Function(AuthEventPasswordChanged value) passwordChanged,
|
|
|
|
|
required TResult Function(AuthEventNameChanged value) nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -754,7 +757,7 @@ class _$AuthEventLogoutRequestedImpl implements AuthEventLogoutRequested {
|
|
|
|
|
TResult? Function(AuthEventRegisterRequested value)? registerRequested,
|
|
|
|
|
TResult? Function(AuthEventLogoutRequested value)? logoutRequested,
|
|
|
|
|
TResult? Function(AuthEventAuthChecked value)? authChecked,
|
|
|
|
|
TResult? Function(AuthEventEmailChanged value)? emailChanged,
|
|
|
|
|
TResult? Function(AuthEventUsernameChanged value)? usernameChanged,
|
|
|
|
|
TResult? Function(AuthEventPasswordChanged value)? passwordChanged,
|
|
|
|
|
TResult? Function(AuthEventNameChanged value)? nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -769,7 +772,7 @@ class _$AuthEventLogoutRequestedImpl implements AuthEventLogoutRequested {
|
|
|
|
|
TResult Function(AuthEventRegisterRequested value)? registerRequested,
|
|
|
|
|
TResult Function(AuthEventLogoutRequested value)? logoutRequested,
|
|
|
|
|
TResult Function(AuthEventAuthChecked value)? authChecked,
|
|
|
|
|
TResult Function(AuthEventEmailChanged value)? emailChanged,
|
|
|
|
|
TResult Function(AuthEventUsernameChanged value)? usernameChanged,
|
|
|
|
|
TResult Function(AuthEventPasswordChanged value)? passwordChanged,
|
|
|
|
|
TResult Function(AuthEventNameChanged value)? nameChanged,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
@@ -825,12 +828,12 @@ class _$AuthEventAuthCheckedImpl implements AuthEventAuthChecked {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function() started,
|
|
|
|
|
required TResult Function(String email, String password) loginRequested,
|
|
|
|
|
required TResult Function(String email, String password, String name)
|
|
|
|
|
required TResult Function(String username, String password) loginRequested,
|
|
|
|
|
required TResult Function(String username, String password, String name)
|
|
|
|
|
registerRequested,
|
|
|
|
|
required TResult Function() logoutRequested,
|
|
|
|
|
required TResult Function() authChecked,
|
|
|
|
|
required TResult Function(String email) emailChanged,
|
|
|
|
|
required TResult Function(String username) usernameChanged,
|
|
|
|
|
required TResult Function(String password) passwordChanged,
|
|
|
|
|
required TResult Function(String name) nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -841,12 +844,12 @@ class _$AuthEventAuthCheckedImpl implements AuthEventAuthChecked {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function()? started,
|
|
|
|
|
TResult? Function(String email, String password)? loginRequested,
|
|
|
|
|
TResult? Function(String email, String password, String name)?
|
|
|
|
|
TResult? Function(String username, String password)? loginRequested,
|
|
|
|
|
TResult? Function(String username, String password, String name)?
|
|
|
|
|
registerRequested,
|
|
|
|
|
TResult? Function()? logoutRequested,
|
|
|
|
|
TResult? Function()? authChecked,
|
|
|
|
|
TResult? Function(String email)? emailChanged,
|
|
|
|
|
TResult? Function(String username)? usernameChanged,
|
|
|
|
|
TResult? Function(String password)? passwordChanged,
|
|
|
|
|
TResult? Function(String name)? nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -857,12 +860,12 @@ class _$AuthEventAuthCheckedImpl implements AuthEventAuthChecked {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function()? started,
|
|
|
|
|
TResult Function(String email, String password)? loginRequested,
|
|
|
|
|
TResult Function(String email, String password, String name)?
|
|
|
|
|
TResult Function(String username, String password)? loginRequested,
|
|
|
|
|
TResult Function(String username, String password, String name)?
|
|
|
|
|
registerRequested,
|
|
|
|
|
TResult Function()? logoutRequested,
|
|
|
|
|
TResult Function()? authChecked,
|
|
|
|
|
TResult Function(String email)? emailChanged,
|
|
|
|
|
TResult Function(String username)? usernameChanged,
|
|
|
|
|
TResult Function(String password)? passwordChanged,
|
|
|
|
|
TResult Function(String name)? nameChanged,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
@@ -882,7 +885,7 @@ class _$AuthEventAuthCheckedImpl implements AuthEventAuthChecked {
|
|
|
|
|
registerRequested,
|
|
|
|
|
required TResult Function(AuthEventLogoutRequested value) logoutRequested,
|
|
|
|
|
required TResult Function(AuthEventAuthChecked value) authChecked,
|
|
|
|
|
required TResult Function(AuthEventEmailChanged value) emailChanged,
|
|
|
|
|
required TResult Function(AuthEventUsernameChanged value) usernameChanged,
|
|
|
|
|
required TResult Function(AuthEventPasswordChanged value) passwordChanged,
|
|
|
|
|
required TResult Function(AuthEventNameChanged value) nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -897,7 +900,7 @@ class _$AuthEventAuthCheckedImpl implements AuthEventAuthChecked {
|
|
|
|
|
TResult? Function(AuthEventRegisterRequested value)? registerRequested,
|
|
|
|
|
TResult? Function(AuthEventLogoutRequested value)? logoutRequested,
|
|
|
|
|
TResult? Function(AuthEventAuthChecked value)? authChecked,
|
|
|
|
|
TResult? Function(AuthEventEmailChanged value)? emailChanged,
|
|
|
|
|
TResult? Function(AuthEventUsernameChanged value)? usernameChanged,
|
|
|
|
|
TResult? Function(AuthEventPasswordChanged value)? passwordChanged,
|
|
|
|
|
TResult? Function(AuthEventNameChanged value)? nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -912,7 +915,7 @@ class _$AuthEventAuthCheckedImpl implements AuthEventAuthChecked {
|
|
|
|
|
TResult Function(AuthEventRegisterRequested value)? registerRequested,
|
|
|
|
|
TResult Function(AuthEventLogoutRequested value)? logoutRequested,
|
|
|
|
|
TResult Function(AuthEventAuthChecked value)? authChecked,
|
|
|
|
|
TResult Function(AuthEventEmailChanged value)? emailChanged,
|
|
|
|
|
TResult Function(AuthEventUsernameChanged value)? usernameChanged,
|
|
|
|
|
TResult Function(AuthEventPasswordChanged value)? passwordChanged,
|
|
|
|
|
TResult Function(AuthEventNameChanged value)? nameChanged,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
@@ -929,32 +932,33 @@ abstract class AuthEventAuthChecked implements AuthEvent {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$AuthEventEmailChangedImplCopyWith<$Res> {
|
|
|
|
|
factory _$$AuthEventEmailChangedImplCopyWith(
|
|
|
|
|
_$AuthEventEmailChangedImpl value,
|
|
|
|
|
$Res Function(_$AuthEventEmailChangedImpl) then) =
|
|
|
|
|
__$$AuthEventEmailChangedImplCopyWithImpl<$Res>;
|
|
|
|
|
abstract class _$$AuthEventUsernameChangedImplCopyWith<$Res> {
|
|
|
|
|
factory _$$AuthEventUsernameChangedImplCopyWith(
|
|
|
|
|
_$AuthEventUsernameChangedImpl value,
|
|
|
|
|
$Res Function(_$AuthEventUsernameChangedImpl) then) =
|
|
|
|
|
__$$AuthEventUsernameChangedImplCopyWithImpl<$Res>;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({String email});
|
|
|
|
|
$Res call({String username});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$AuthEventEmailChangedImplCopyWithImpl<$Res>
|
|
|
|
|
extends _$AuthEventCopyWithImpl<$Res, _$AuthEventEmailChangedImpl>
|
|
|
|
|
implements _$$AuthEventEmailChangedImplCopyWith<$Res> {
|
|
|
|
|
__$$AuthEventEmailChangedImplCopyWithImpl(_$AuthEventEmailChangedImpl _value,
|
|
|
|
|
$Res Function(_$AuthEventEmailChangedImpl) _then)
|
|
|
|
|
class __$$AuthEventUsernameChangedImplCopyWithImpl<$Res>
|
|
|
|
|
extends _$AuthEventCopyWithImpl<$Res, _$AuthEventUsernameChangedImpl>
|
|
|
|
|
implements _$$AuthEventUsernameChangedImplCopyWith<$Res> {
|
|
|
|
|
__$$AuthEventUsernameChangedImplCopyWithImpl(
|
|
|
|
|
_$AuthEventUsernameChangedImpl _value,
|
|
|
|
|
$Res Function(_$AuthEventUsernameChangedImpl) _then)
|
|
|
|
|
: super(_value, _then);
|
|
|
|
|
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? email = null,
|
|
|
|
|
Object? username = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(_$AuthEventEmailChangedImpl(
|
|
|
|
|
null == email
|
|
|
|
|
? _value.email
|
|
|
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
return _then(_$AuthEventUsernameChangedImpl(
|
|
|
|
|
null == username
|
|
|
|
|
? _value.username
|
|
|
|
|
: username // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
@@ -962,83 +966,84 @@ class __$$AuthEventEmailChangedImplCopyWithImpl<$Res>
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
class _$AuthEventEmailChangedImpl implements AuthEventEmailChanged {
|
|
|
|
|
const _$AuthEventEmailChangedImpl(this.email);
|
|
|
|
|
class _$AuthEventUsernameChangedImpl implements AuthEventUsernameChanged {
|
|
|
|
|
const _$AuthEventUsernameChangedImpl(this.username);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
final String email;
|
|
|
|
|
final String username;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'AuthEvent.emailChanged(email: $email)';
|
|
|
|
|
return 'AuthEvent.usernameChanged(username: $username)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
|
|
other is _$AuthEventEmailChangedImpl &&
|
|
|
|
|
(identical(other.email, email) || other.email == email));
|
|
|
|
|
other is _$AuthEventUsernameChangedImpl &&
|
|
|
|
|
(identical(other.username, username) ||
|
|
|
|
|
other.username == username));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(runtimeType, email);
|
|
|
|
|
int get hashCode => Object.hash(runtimeType, username);
|
|
|
|
|
|
|
|
|
|
@JsonKey(ignore: true)
|
|
|
|
|
@override
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
_$$AuthEventEmailChangedImplCopyWith<_$AuthEventEmailChangedImpl>
|
|
|
|
|
get copyWith => __$$AuthEventEmailChangedImplCopyWithImpl<
|
|
|
|
|
_$AuthEventEmailChangedImpl>(this, _$identity);
|
|
|
|
|
_$$AuthEventUsernameChangedImplCopyWith<_$AuthEventUsernameChangedImpl>
|
|
|
|
|
get copyWith => __$$AuthEventUsernameChangedImplCopyWithImpl<
|
|
|
|
|
_$AuthEventUsernameChangedImpl>(this, _$identity);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function() started,
|
|
|
|
|
required TResult Function(String email, String password) loginRequested,
|
|
|
|
|
required TResult Function(String email, String password, String name)
|
|
|
|
|
required TResult Function(String username, String password) loginRequested,
|
|
|
|
|
required TResult Function(String username, String password, String name)
|
|
|
|
|
registerRequested,
|
|
|
|
|
required TResult Function() logoutRequested,
|
|
|
|
|
required TResult Function() authChecked,
|
|
|
|
|
required TResult Function(String email) emailChanged,
|
|
|
|
|
required TResult Function(String username) usernameChanged,
|
|
|
|
|
required TResult Function(String password) passwordChanged,
|
|
|
|
|
required TResult Function(String name) nameChanged,
|
|
|
|
|
}) {
|
|
|
|
|
return emailChanged(email);
|
|
|
|
|
return usernameChanged(username);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function()? started,
|
|
|
|
|
TResult? Function(String email, String password)? loginRequested,
|
|
|
|
|
TResult? Function(String email, String password, String name)?
|
|
|
|
|
TResult? Function(String username, String password)? loginRequested,
|
|
|
|
|
TResult? Function(String username, String password, String name)?
|
|
|
|
|
registerRequested,
|
|
|
|
|
TResult? Function()? logoutRequested,
|
|
|
|
|
TResult? Function()? authChecked,
|
|
|
|
|
TResult? Function(String email)? emailChanged,
|
|
|
|
|
TResult? Function(String username)? usernameChanged,
|
|
|
|
|
TResult? Function(String password)? passwordChanged,
|
|
|
|
|
TResult? Function(String name)? nameChanged,
|
|
|
|
|
}) {
|
|
|
|
|
return emailChanged?.call(email);
|
|
|
|
|
return usernameChanged?.call(username);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function()? started,
|
|
|
|
|
TResult Function(String email, String password)? loginRequested,
|
|
|
|
|
TResult Function(String email, String password, String name)?
|
|
|
|
|
TResult Function(String username, String password)? loginRequested,
|
|
|
|
|
TResult Function(String username, String password, String name)?
|
|
|
|
|
registerRequested,
|
|
|
|
|
TResult Function()? logoutRequested,
|
|
|
|
|
TResult Function()? authChecked,
|
|
|
|
|
TResult Function(String email)? emailChanged,
|
|
|
|
|
TResult Function(String username)? usernameChanged,
|
|
|
|
|
TResult Function(String password)? passwordChanged,
|
|
|
|
|
TResult Function(String name)? nameChanged,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (emailChanged != null) {
|
|
|
|
|
return emailChanged(email);
|
|
|
|
|
if (usernameChanged != null) {
|
|
|
|
|
return usernameChanged(username);
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
@@ -1052,11 +1057,11 @@ class _$AuthEventEmailChangedImpl implements AuthEventEmailChanged {
|
|
|
|
|
registerRequested,
|
|
|
|
|
required TResult Function(AuthEventLogoutRequested value) logoutRequested,
|
|
|
|
|
required TResult Function(AuthEventAuthChecked value) authChecked,
|
|
|
|
|
required TResult Function(AuthEventEmailChanged value) emailChanged,
|
|
|
|
|
required TResult Function(AuthEventUsernameChanged value) usernameChanged,
|
|
|
|
|
required TResult Function(AuthEventPasswordChanged value) passwordChanged,
|
|
|
|
|
required TResult Function(AuthEventNameChanged value) nameChanged,
|
|
|
|
|
}) {
|
|
|
|
|
return emailChanged(this);
|
|
|
|
|
return usernameChanged(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@@ -1067,11 +1072,11 @@ class _$AuthEventEmailChangedImpl implements AuthEventEmailChanged {
|
|
|
|
|
TResult? Function(AuthEventRegisterRequested value)? registerRequested,
|
|
|
|
|
TResult? Function(AuthEventLogoutRequested value)? logoutRequested,
|
|
|
|
|
TResult? Function(AuthEventAuthChecked value)? authChecked,
|
|
|
|
|
TResult? Function(AuthEventEmailChanged value)? emailChanged,
|
|
|
|
|
TResult? Function(AuthEventUsernameChanged value)? usernameChanged,
|
|
|
|
|
TResult? Function(AuthEventPasswordChanged value)? passwordChanged,
|
|
|
|
|
TResult? Function(AuthEventNameChanged value)? nameChanged,
|
|
|
|
|
}) {
|
|
|
|
|
return emailChanged?.call(this);
|
|
|
|
|
return usernameChanged?.call(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@@ -1082,25 +1087,25 @@ class _$AuthEventEmailChangedImpl implements AuthEventEmailChanged {
|
|
|
|
|
TResult Function(AuthEventRegisterRequested value)? registerRequested,
|
|
|
|
|
TResult Function(AuthEventLogoutRequested value)? logoutRequested,
|
|
|
|
|
TResult Function(AuthEventAuthChecked value)? authChecked,
|
|
|
|
|
TResult Function(AuthEventEmailChanged value)? emailChanged,
|
|
|
|
|
TResult Function(AuthEventUsernameChanged value)? usernameChanged,
|
|
|
|
|
TResult Function(AuthEventPasswordChanged value)? passwordChanged,
|
|
|
|
|
TResult Function(AuthEventNameChanged value)? nameChanged,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (emailChanged != null) {
|
|
|
|
|
return emailChanged(this);
|
|
|
|
|
if (usernameChanged != null) {
|
|
|
|
|
return usernameChanged(this);
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class AuthEventEmailChanged implements AuthEvent {
|
|
|
|
|
const factory AuthEventEmailChanged(final String email) =
|
|
|
|
|
_$AuthEventEmailChangedImpl;
|
|
|
|
|
abstract class AuthEventUsernameChanged implements AuthEvent {
|
|
|
|
|
const factory AuthEventUsernameChanged(final String username) =
|
|
|
|
|
_$AuthEventUsernameChangedImpl;
|
|
|
|
|
|
|
|
|
|
String get email;
|
|
|
|
|
String get username;
|
|
|
|
|
@JsonKey(ignore: true)
|
|
|
|
|
_$$AuthEventEmailChangedImplCopyWith<_$AuthEventEmailChangedImpl>
|
|
|
|
|
_$$AuthEventUsernameChangedImplCopyWith<_$AuthEventUsernameChangedImpl>
|
|
|
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -1173,12 +1178,12 @@ class _$AuthEventPasswordChangedImpl implements AuthEventPasswordChanged {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function() started,
|
|
|
|
|
required TResult Function(String email, String password) loginRequested,
|
|
|
|
|
required TResult Function(String email, String password, String name)
|
|
|
|
|
required TResult Function(String username, String password) loginRequested,
|
|
|
|
|
required TResult Function(String username, String password, String name)
|
|
|
|
|
registerRequested,
|
|
|
|
|
required TResult Function() logoutRequested,
|
|
|
|
|
required TResult Function() authChecked,
|
|
|
|
|
required TResult Function(String email) emailChanged,
|
|
|
|
|
required TResult Function(String username) usernameChanged,
|
|
|
|
|
required TResult Function(String password) passwordChanged,
|
|
|
|
|
required TResult Function(String name) nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -1189,12 +1194,12 @@ class _$AuthEventPasswordChangedImpl implements AuthEventPasswordChanged {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function()? started,
|
|
|
|
|
TResult? Function(String email, String password)? loginRequested,
|
|
|
|
|
TResult? Function(String email, String password, String name)?
|
|
|
|
|
TResult? Function(String username, String password)? loginRequested,
|
|
|
|
|
TResult? Function(String username, String password, String name)?
|
|
|
|
|
registerRequested,
|
|
|
|
|
TResult? Function()? logoutRequested,
|
|
|
|
|
TResult? Function()? authChecked,
|
|
|
|
|
TResult? Function(String email)? emailChanged,
|
|
|
|
|
TResult? Function(String username)? usernameChanged,
|
|
|
|
|
TResult? Function(String password)? passwordChanged,
|
|
|
|
|
TResult? Function(String name)? nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -1205,12 +1210,12 @@ class _$AuthEventPasswordChangedImpl implements AuthEventPasswordChanged {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function()? started,
|
|
|
|
|
TResult Function(String email, String password)? loginRequested,
|
|
|
|
|
TResult Function(String email, String password, String name)?
|
|
|
|
|
TResult Function(String username, String password)? loginRequested,
|
|
|
|
|
TResult Function(String username, String password, String name)?
|
|
|
|
|
registerRequested,
|
|
|
|
|
TResult Function()? logoutRequested,
|
|
|
|
|
TResult Function()? authChecked,
|
|
|
|
|
TResult Function(String email)? emailChanged,
|
|
|
|
|
TResult Function(String username)? usernameChanged,
|
|
|
|
|
TResult Function(String password)? passwordChanged,
|
|
|
|
|
TResult Function(String name)? nameChanged,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
@@ -1230,7 +1235,7 @@ class _$AuthEventPasswordChangedImpl implements AuthEventPasswordChanged {
|
|
|
|
|
registerRequested,
|
|
|
|
|
required TResult Function(AuthEventLogoutRequested value) logoutRequested,
|
|
|
|
|
required TResult Function(AuthEventAuthChecked value) authChecked,
|
|
|
|
|
required TResult Function(AuthEventEmailChanged value) emailChanged,
|
|
|
|
|
required TResult Function(AuthEventUsernameChanged value) usernameChanged,
|
|
|
|
|
required TResult Function(AuthEventPasswordChanged value) passwordChanged,
|
|
|
|
|
required TResult Function(AuthEventNameChanged value) nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -1245,7 +1250,7 @@ class _$AuthEventPasswordChangedImpl implements AuthEventPasswordChanged {
|
|
|
|
|
TResult? Function(AuthEventRegisterRequested value)? registerRequested,
|
|
|
|
|
TResult? Function(AuthEventLogoutRequested value)? logoutRequested,
|
|
|
|
|
TResult? Function(AuthEventAuthChecked value)? authChecked,
|
|
|
|
|
TResult? Function(AuthEventEmailChanged value)? emailChanged,
|
|
|
|
|
TResult? Function(AuthEventUsernameChanged value)? usernameChanged,
|
|
|
|
|
TResult? Function(AuthEventPasswordChanged value)? passwordChanged,
|
|
|
|
|
TResult? Function(AuthEventNameChanged value)? nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -1260,7 +1265,7 @@ class _$AuthEventPasswordChangedImpl implements AuthEventPasswordChanged {
|
|
|
|
|
TResult Function(AuthEventRegisterRequested value)? registerRequested,
|
|
|
|
|
TResult Function(AuthEventLogoutRequested value)? logoutRequested,
|
|
|
|
|
TResult Function(AuthEventAuthChecked value)? authChecked,
|
|
|
|
|
TResult Function(AuthEventEmailChanged value)? emailChanged,
|
|
|
|
|
TResult Function(AuthEventUsernameChanged value)? usernameChanged,
|
|
|
|
|
TResult Function(AuthEventPasswordChanged value)? passwordChanged,
|
|
|
|
|
TResult Function(AuthEventNameChanged value)? nameChanged,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
@@ -1349,12 +1354,12 @@ class _$AuthEventNameChangedImpl implements AuthEventNameChanged {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function() started,
|
|
|
|
|
required TResult Function(String email, String password) loginRequested,
|
|
|
|
|
required TResult Function(String email, String password, String name)
|
|
|
|
|
required TResult Function(String username, String password) loginRequested,
|
|
|
|
|
required TResult Function(String username, String password, String name)
|
|
|
|
|
registerRequested,
|
|
|
|
|
required TResult Function() logoutRequested,
|
|
|
|
|
required TResult Function() authChecked,
|
|
|
|
|
required TResult Function(String email) emailChanged,
|
|
|
|
|
required TResult Function(String username) usernameChanged,
|
|
|
|
|
required TResult Function(String password) passwordChanged,
|
|
|
|
|
required TResult Function(String name) nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -1365,12 +1370,12 @@ class _$AuthEventNameChangedImpl implements AuthEventNameChanged {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function()? started,
|
|
|
|
|
TResult? Function(String email, String password)? loginRequested,
|
|
|
|
|
TResult? Function(String email, String password, String name)?
|
|
|
|
|
TResult? Function(String username, String password)? loginRequested,
|
|
|
|
|
TResult? Function(String username, String password, String name)?
|
|
|
|
|
registerRequested,
|
|
|
|
|
TResult? Function()? logoutRequested,
|
|
|
|
|
TResult? Function()? authChecked,
|
|
|
|
|
TResult? Function(String email)? emailChanged,
|
|
|
|
|
TResult? Function(String username)? usernameChanged,
|
|
|
|
|
TResult? Function(String password)? passwordChanged,
|
|
|
|
|
TResult? Function(String name)? nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -1381,12 +1386,12 @@ class _$AuthEventNameChangedImpl implements AuthEventNameChanged {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function()? started,
|
|
|
|
|
TResult Function(String email, String password)? loginRequested,
|
|
|
|
|
TResult Function(String email, String password, String name)?
|
|
|
|
|
TResult Function(String username, String password)? loginRequested,
|
|
|
|
|
TResult Function(String username, String password, String name)?
|
|
|
|
|
registerRequested,
|
|
|
|
|
TResult Function()? logoutRequested,
|
|
|
|
|
TResult Function()? authChecked,
|
|
|
|
|
TResult Function(String email)? emailChanged,
|
|
|
|
|
TResult Function(String username)? usernameChanged,
|
|
|
|
|
TResult Function(String password)? passwordChanged,
|
|
|
|
|
TResult Function(String name)? nameChanged,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
@@ -1406,7 +1411,7 @@ class _$AuthEventNameChangedImpl implements AuthEventNameChanged {
|
|
|
|
|
registerRequested,
|
|
|
|
|
required TResult Function(AuthEventLogoutRequested value) logoutRequested,
|
|
|
|
|
required TResult Function(AuthEventAuthChecked value) authChecked,
|
|
|
|
|
required TResult Function(AuthEventEmailChanged value) emailChanged,
|
|
|
|
|
required TResult Function(AuthEventUsernameChanged value) usernameChanged,
|
|
|
|
|
required TResult Function(AuthEventPasswordChanged value) passwordChanged,
|
|
|
|
|
required TResult Function(AuthEventNameChanged value) nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -1421,7 +1426,7 @@ class _$AuthEventNameChangedImpl implements AuthEventNameChanged {
|
|
|
|
|
TResult? Function(AuthEventRegisterRequested value)? registerRequested,
|
|
|
|
|
TResult? Function(AuthEventLogoutRequested value)? logoutRequested,
|
|
|
|
|
TResult? Function(AuthEventAuthChecked value)? authChecked,
|
|
|
|
|
TResult? Function(AuthEventEmailChanged value)? emailChanged,
|
|
|
|
|
TResult? Function(AuthEventUsernameChanged value)? usernameChanged,
|
|
|
|
|
TResult? Function(AuthEventPasswordChanged value)? passwordChanged,
|
|
|
|
|
TResult? Function(AuthEventNameChanged value)? nameChanged,
|
|
|
|
|
}) {
|
|
|
|
@@ -1436,7 +1441,7 @@ class _$AuthEventNameChangedImpl implements AuthEventNameChanged {
|
|
|
|
|
TResult Function(AuthEventRegisterRequested value)? registerRequested,
|
|
|
|
|
TResult Function(AuthEventLogoutRequested value)? logoutRequested,
|
|
|
|
|
TResult Function(AuthEventAuthChecked value)? authChecked,
|
|
|
|
|
TResult Function(AuthEventEmailChanged value)? emailChanged,
|
|
|
|
|
TResult Function(AuthEventUsernameChanged value)? usernameChanged,
|
|
|
|
|
TResult Function(AuthEventPasswordChanged value)? passwordChanged,
|
|
|
|
|
TResult Function(AuthEventNameChanged value)? nameChanged,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|