mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-23 00:52:14 +00:00
1008 lines
33 KiB
Dart
1008 lines
33 KiB
Dart
// coverage:ignore-file
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target
|
|
|
|
part of 'sign_up_bloc.dart';
|
|
|
|
// **************************************************************************
|
|
// FreezedGenerator
|
|
// **************************************************************************
|
|
|
|
T _$identity<T>(T value) => value;
|
|
|
|
final _privateConstructorUsedError = UnsupportedError(
|
|
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
|
|
|
|
/// @nodoc
|
|
class _$SignUpEventTearOff {
|
|
const _$SignUpEventTearOff();
|
|
|
|
SignUpWithUserEmailAndPassword signUpWithUserEmailAndPassword() {
|
|
return const SignUpWithUserEmailAndPassword();
|
|
}
|
|
|
|
EmailChanged emailChanged(String email) {
|
|
return EmailChanged(
|
|
email,
|
|
);
|
|
}
|
|
|
|
PasswordChanged passwordChanged(String password) {
|
|
return PasswordChanged(
|
|
password,
|
|
);
|
|
}
|
|
|
|
RepeatPasswordChanged repeatPasswordChanged(String password) {
|
|
return RepeatPasswordChanged(
|
|
password,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
const $SignUpEvent = _$SignUpEventTearOff();
|
|
|
|
/// @nodoc
|
|
mixin _$SignUpEvent {
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() signUpWithUserEmailAndPassword,
|
|
required TResult Function(String email) emailChanged,
|
|
required TResult Function(String password) passwordChanged,
|
|
required TResult Function(String password) repeatPasswordChanged,
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult Function()? signUpWithUserEmailAndPassword,
|
|
TResult Function(String email)? emailChanged,
|
|
TResult Function(String password)? passwordChanged,
|
|
TResult Function(String password)? repeatPasswordChanged,
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? signUpWithUserEmailAndPassword,
|
|
TResult Function(String email)? emailChanged,
|
|
TResult Function(String password)? passwordChanged,
|
|
TResult Function(String password)? repeatPasswordChanged,
|
|
required TResult orElse(),
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(SignUpWithUserEmailAndPassword value)
|
|
signUpWithUserEmailAndPassword,
|
|
required TResult Function(EmailChanged value) emailChanged,
|
|
required TResult Function(PasswordChanged value) passwordChanged,
|
|
required TResult Function(RepeatPasswordChanged value)
|
|
repeatPasswordChanged,
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult Function(SignUpWithUserEmailAndPassword value)?
|
|
signUpWithUserEmailAndPassword,
|
|
TResult Function(EmailChanged value)? emailChanged,
|
|
TResult Function(PasswordChanged value)? passwordChanged,
|
|
TResult Function(RepeatPasswordChanged value)? repeatPasswordChanged,
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(SignUpWithUserEmailAndPassword value)?
|
|
signUpWithUserEmailAndPassword,
|
|
TResult Function(EmailChanged value)? emailChanged,
|
|
TResult Function(PasswordChanged value)? passwordChanged,
|
|
TResult Function(RepeatPasswordChanged value)? repeatPasswordChanged,
|
|
required TResult orElse(),
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SignUpEventCopyWith<$Res> {
|
|
factory $SignUpEventCopyWith(
|
|
SignUpEvent value, $Res Function(SignUpEvent) then) =
|
|
_$SignUpEventCopyWithImpl<$Res>;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SignUpEventCopyWithImpl<$Res> implements $SignUpEventCopyWith<$Res> {
|
|
_$SignUpEventCopyWithImpl(this._value, this._then);
|
|
|
|
final SignUpEvent _value;
|
|
// ignore: unused_field
|
|
final $Res Function(SignUpEvent) _then;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SignUpWithUserEmailAndPasswordCopyWith<$Res> {
|
|
factory $SignUpWithUserEmailAndPasswordCopyWith(
|
|
SignUpWithUserEmailAndPassword value,
|
|
$Res Function(SignUpWithUserEmailAndPassword) then) =
|
|
_$SignUpWithUserEmailAndPasswordCopyWithImpl<$Res>;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SignUpWithUserEmailAndPasswordCopyWithImpl<$Res>
|
|
extends _$SignUpEventCopyWithImpl<$Res>
|
|
implements $SignUpWithUserEmailAndPasswordCopyWith<$Res> {
|
|
_$SignUpWithUserEmailAndPasswordCopyWithImpl(
|
|
SignUpWithUserEmailAndPassword _value,
|
|
$Res Function(SignUpWithUserEmailAndPassword) _then)
|
|
: super(_value, (v) => _then(v as SignUpWithUserEmailAndPassword));
|
|
|
|
@override
|
|
SignUpWithUserEmailAndPassword get _value =>
|
|
super._value as SignUpWithUserEmailAndPassword;
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$SignUpWithUserEmailAndPassword
|
|
implements SignUpWithUserEmailAndPassword {
|
|
const _$SignUpWithUserEmailAndPassword();
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SignUpEvent.signUpWithUserEmailAndPassword()';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(dynamic other) {
|
|
return identical(this, other) || (other is SignUpWithUserEmailAndPassword);
|
|
}
|
|
|
|
@override
|
|
int get hashCode => runtimeType.hashCode;
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() signUpWithUserEmailAndPassword,
|
|
required TResult Function(String email) emailChanged,
|
|
required TResult Function(String password) passwordChanged,
|
|
required TResult Function(String password) repeatPasswordChanged,
|
|
}) {
|
|
return signUpWithUserEmailAndPassword();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult Function()? signUpWithUserEmailAndPassword,
|
|
TResult Function(String email)? emailChanged,
|
|
TResult Function(String password)? passwordChanged,
|
|
TResult Function(String password)? repeatPasswordChanged,
|
|
}) {
|
|
return signUpWithUserEmailAndPassword?.call();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? signUpWithUserEmailAndPassword,
|
|
TResult Function(String email)? emailChanged,
|
|
TResult Function(String password)? passwordChanged,
|
|
TResult Function(String password)? repeatPasswordChanged,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (signUpWithUserEmailAndPassword != null) {
|
|
return signUpWithUserEmailAndPassword();
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(SignUpWithUserEmailAndPassword value)
|
|
signUpWithUserEmailAndPassword,
|
|
required TResult Function(EmailChanged value) emailChanged,
|
|
required TResult Function(PasswordChanged value) passwordChanged,
|
|
required TResult Function(RepeatPasswordChanged value)
|
|
repeatPasswordChanged,
|
|
}) {
|
|
return signUpWithUserEmailAndPassword(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult Function(SignUpWithUserEmailAndPassword value)?
|
|
signUpWithUserEmailAndPassword,
|
|
TResult Function(EmailChanged value)? emailChanged,
|
|
TResult Function(PasswordChanged value)? passwordChanged,
|
|
TResult Function(RepeatPasswordChanged value)? repeatPasswordChanged,
|
|
}) {
|
|
return signUpWithUserEmailAndPassword?.call(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(SignUpWithUserEmailAndPassword value)?
|
|
signUpWithUserEmailAndPassword,
|
|
TResult Function(EmailChanged value)? emailChanged,
|
|
TResult Function(PasswordChanged value)? passwordChanged,
|
|
TResult Function(RepeatPasswordChanged value)? repeatPasswordChanged,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (signUpWithUserEmailAndPassword != null) {
|
|
return signUpWithUserEmailAndPassword(this);
|
|
}
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
abstract class SignUpWithUserEmailAndPassword implements SignUpEvent {
|
|
const factory SignUpWithUserEmailAndPassword() =
|
|
_$SignUpWithUserEmailAndPassword;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $EmailChangedCopyWith<$Res> {
|
|
factory $EmailChangedCopyWith(
|
|
EmailChanged value, $Res Function(EmailChanged) then) =
|
|
_$EmailChangedCopyWithImpl<$Res>;
|
|
$Res call({String email});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$EmailChangedCopyWithImpl<$Res> extends _$SignUpEventCopyWithImpl<$Res>
|
|
implements $EmailChangedCopyWith<$Res> {
|
|
_$EmailChangedCopyWithImpl(
|
|
EmailChanged _value, $Res Function(EmailChanged) _then)
|
|
: super(_value, (v) => _then(v as EmailChanged));
|
|
|
|
@override
|
|
EmailChanged get _value => super._value as EmailChanged;
|
|
|
|
@override
|
|
$Res call({
|
|
Object? email = freezed,
|
|
}) {
|
|
return _then(EmailChanged(
|
|
email == freezed
|
|
? _value.email
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$EmailChanged implements EmailChanged {
|
|
const _$EmailChanged(this.email);
|
|
|
|
@override
|
|
final String email;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SignUpEvent.emailChanged(email: $email)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(dynamic other) {
|
|
return identical(this, other) ||
|
|
(other is EmailChanged &&
|
|
(identical(other.email, email) ||
|
|
const DeepCollectionEquality().equals(other.email, email)));
|
|
}
|
|
|
|
@override
|
|
int get hashCode =>
|
|
runtimeType.hashCode ^ const DeepCollectionEquality().hash(email);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
$EmailChangedCopyWith<EmailChanged> get copyWith =>
|
|
_$EmailChangedCopyWithImpl<EmailChanged>(this, _$identity);
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() signUpWithUserEmailAndPassword,
|
|
required TResult Function(String email) emailChanged,
|
|
required TResult Function(String password) passwordChanged,
|
|
required TResult Function(String password) repeatPasswordChanged,
|
|
}) {
|
|
return emailChanged(email);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult Function()? signUpWithUserEmailAndPassword,
|
|
TResult Function(String email)? emailChanged,
|
|
TResult Function(String password)? passwordChanged,
|
|
TResult Function(String password)? repeatPasswordChanged,
|
|
}) {
|
|
return emailChanged?.call(email);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? signUpWithUserEmailAndPassword,
|
|
TResult Function(String email)? emailChanged,
|
|
TResult Function(String password)? passwordChanged,
|
|
TResult Function(String password)? repeatPasswordChanged,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (emailChanged != null) {
|
|
return emailChanged(email);
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(SignUpWithUserEmailAndPassword value)
|
|
signUpWithUserEmailAndPassword,
|
|
required TResult Function(EmailChanged value) emailChanged,
|
|
required TResult Function(PasswordChanged value) passwordChanged,
|
|
required TResult Function(RepeatPasswordChanged value)
|
|
repeatPasswordChanged,
|
|
}) {
|
|
return emailChanged(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult Function(SignUpWithUserEmailAndPassword value)?
|
|
signUpWithUserEmailAndPassword,
|
|
TResult Function(EmailChanged value)? emailChanged,
|
|
TResult Function(PasswordChanged value)? passwordChanged,
|
|
TResult Function(RepeatPasswordChanged value)? repeatPasswordChanged,
|
|
}) {
|
|
return emailChanged?.call(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(SignUpWithUserEmailAndPassword value)?
|
|
signUpWithUserEmailAndPassword,
|
|
TResult Function(EmailChanged value)? emailChanged,
|
|
TResult Function(PasswordChanged value)? passwordChanged,
|
|
TResult Function(RepeatPasswordChanged value)? repeatPasswordChanged,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (emailChanged != null) {
|
|
return emailChanged(this);
|
|
}
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
abstract class EmailChanged implements SignUpEvent {
|
|
const factory EmailChanged(String email) = _$EmailChanged;
|
|
|
|
String get email => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$EmailChangedCopyWith<EmailChanged> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $PasswordChangedCopyWith<$Res> {
|
|
factory $PasswordChangedCopyWith(
|
|
PasswordChanged value, $Res Function(PasswordChanged) then) =
|
|
_$PasswordChangedCopyWithImpl<$Res>;
|
|
$Res call({String password});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$PasswordChangedCopyWithImpl<$Res>
|
|
extends _$SignUpEventCopyWithImpl<$Res>
|
|
implements $PasswordChangedCopyWith<$Res> {
|
|
_$PasswordChangedCopyWithImpl(
|
|
PasswordChanged _value, $Res Function(PasswordChanged) _then)
|
|
: super(_value, (v) => _then(v as PasswordChanged));
|
|
|
|
@override
|
|
PasswordChanged get _value => super._value as PasswordChanged;
|
|
|
|
@override
|
|
$Res call({
|
|
Object? password = freezed,
|
|
}) {
|
|
return _then(PasswordChanged(
|
|
password == freezed
|
|
? _value.password
|
|
: password // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$PasswordChanged implements PasswordChanged {
|
|
const _$PasswordChanged(this.password);
|
|
|
|
@override
|
|
final String password;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SignUpEvent.passwordChanged(password: $password)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(dynamic other) {
|
|
return identical(this, other) ||
|
|
(other is PasswordChanged &&
|
|
(identical(other.password, password) ||
|
|
const DeepCollectionEquality()
|
|
.equals(other.password, password)));
|
|
}
|
|
|
|
@override
|
|
int get hashCode =>
|
|
runtimeType.hashCode ^ const DeepCollectionEquality().hash(password);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
$PasswordChangedCopyWith<PasswordChanged> get copyWith =>
|
|
_$PasswordChangedCopyWithImpl<PasswordChanged>(this, _$identity);
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() signUpWithUserEmailAndPassword,
|
|
required TResult Function(String email) emailChanged,
|
|
required TResult Function(String password) passwordChanged,
|
|
required TResult Function(String password) repeatPasswordChanged,
|
|
}) {
|
|
return passwordChanged(password);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult Function()? signUpWithUserEmailAndPassword,
|
|
TResult Function(String email)? emailChanged,
|
|
TResult Function(String password)? passwordChanged,
|
|
TResult Function(String password)? repeatPasswordChanged,
|
|
}) {
|
|
return passwordChanged?.call(password);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? signUpWithUserEmailAndPassword,
|
|
TResult Function(String email)? emailChanged,
|
|
TResult Function(String password)? passwordChanged,
|
|
TResult Function(String password)? repeatPasswordChanged,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (passwordChanged != null) {
|
|
return passwordChanged(password);
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(SignUpWithUserEmailAndPassword value)
|
|
signUpWithUserEmailAndPassword,
|
|
required TResult Function(EmailChanged value) emailChanged,
|
|
required TResult Function(PasswordChanged value) passwordChanged,
|
|
required TResult Function(RepeatPasswordChanged value)
|
|
repeatPasswordChanged,
|
|
}) {
|
|
return passwordChanged(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult Function(SignUpWithUserEmailAndPassword value)?
|
|
signUpWithUserEmailAndPassword,
|
|
TResult Function(EmailChanged value)? emailChanged,
|
|
TResult Function(PasswordChanged value)? passwordChanged,
|
|
TResult Function(RepeatPasswordChanged value)? repeatPasswordChanged,
|
|
}) {
|
|
return passwordChanged?.call(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(SignUpWithUserEmailAndPassword value)?
|
|
signUpWithUserEmailAndPassword,
|
|
TResult Function(EmailChanged value)? emailChanged,
|
|
TResult Function(PasswordChanged value)? passwordChanged,
|
|
TResult Function(RepeatPasswordChanged value)? repeatPasswordChanged,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (passwordChanged != null) {
|
|
return passwordChanged(this);
|
|
}
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
abstract class PasswordChanged implements SignUpEvent {
|
|
const factory PasswordChanged(String password) = _$PasswordChanged;
|
|
|
|
String get password => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$PasswordChangedCopyWith<PasswordChanged> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $RepeatPasswordChangedCopyWith<$Res> {
|
|
factory $RepeatPasswordChangedCopyWith(RepeatPasswordChanged value,
|
|
$Res Function(RepeatPasswordChanged) then) =
|
|
_$RepeatPasswordChangedCopyWithImpl<$Res>;
|
|
$Res call({String password});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$RepeatPasswordChangedCopyWithImpl<$Res>
|
|
extends _$SignUpEventCopyWithImpl<$Res>
|
|
implements $RepeatPasswordChangedCopyWith<$Res> {
|
|
_$RepeatPasswordChangedCopyWithImpl(
|
|
RepeatPasswordChanged _value, $Res Function(RepeatPasswordChanged) _then)
|
|
: super(_value, (v) => _then(v as RepeatPasswordChanged));
|
|
|
|
@override
|
|
RepeatPasswordChanged get _value => super._value as RepeatPasswordChanged;
|
|
|
|
@override
|
|
$Res call({
|
|
Object? password = freezed,
|
|
}) {
|
|
return _then(RepeatPasswordChanged(
|
|
password == freezed
|
|
? _value.password
|
|
: password // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$RepeatPasswordChanged implements RepeatPasswordChanged {
|
|
const _$RepeatPasswordChanged(this.password);
|
|
|
|
@override
|
|
final String password;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SignUpEvent.repeatPasswordChanged(password: $password)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(dynamic other) {
|
|
return identical(this, other) ||
|
|
(other is RepeatPasswordChanged &&
|
|
(identical(other.password, password) ||
|
|
const DeepCollectionEquality()
|
|
.equals(other.password, password)));
|
|
}
|
|
|
|
@override
|
|
int get hashCode =>
|
|
runtimeType.hashCode ^ const DeepCollectionEquality().hash(password);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
$RepeatPasswordChangedCopyWith<RepeatPasswordChanged> get copyWith =>
|
|
_$RepeatPasswordChangedCopyWithImpl<RepeatPasswordChanged>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() signUpWithUserEmailAndPassword,
|
|
required TResult Function(String email) emailChanged,
|
|
required TResult Function(String password) passwordChanged,
|
|
required TResult Function(String password) repeatPasswordChanged,
|
|
}) {
|
|
return repeatPasswordChanged(password);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult Function()? signUpWithUserEmailAndPassword,
|
|
TResult Function(String email)? emailChanged,
|
|
TResult Function(String password)? passwordChanged,
|
|
TResult Function(String password)? repeatPasswordChanged,
|
|
}) {
|
|
return repeatPasswordChanged?.call(password);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? signUpWithUserEmailAndPassword,
|
|
TResult Function(String email)? emailChanged,
|
|
TResult Function(String password)? passwordChanged,
|
|
TResult Function(String password)? repeatPasswordChanged,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (repeatPasswordChanged != null) {
|
|
return repeatPasswordChanged(password);
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(SignUpWithUserEmailAndPassword value)
|
|
signUpWithUserEmailAndPassword,
|
|
required TResult Function(EmailChanged value) emailChanged,
|
|
required TResult Function(PasswordChanged value) passwordChanged,
|
|
required TResult Function(RepeatPasswordChanged value)
|
|
repeatPasswordChanged,
|
|
}) {
|
|
return repeatPasswordChanged(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult Function(SignUpWithUserEmailAndPassword value)?
|
|
signUpWithUserEmailAndPassword,
|
|
TResult Function(EmailChanged value)? emailChanged,
|
|
TResult Function(PasswordChanged value)? passwordChanged,
|
|
TResult Function(RepeatPasswordChanged value)? repeatPasswordChanged,
|
|
}) {
|
|
return repeatPasswordChanged?.call(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(SignUpWithUserEmailAndPassword value)?
|
|
signUpWithUserEmailAndPassword,
|
|
TResult Function(EmailChanged value)? emailChanged,
|
|
TResult Function(PasswordChanged value)? passwordChanged,
|
|
TResult Function(RepeatPasswordChanged value)? repeatPasswordChanged,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (repeatPasswordChanged != null) {
|
|
return repeatPasswordChanged(this);
|
|
}
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
abstract class RepeatPasswordChanged implements SignUpEvent {
|
|
const factory RepeatPasswordChanged(String password) =
|
|
_$RepeatPasswordChanged;
|
|
|
|
String get password => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$RepeatPasswordChangedCopyWith<RepeatPasswordChanged> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SignUpStateTearOff {
|
|
const _$SignUpStateTearOff();
|
|
|
|
_SignUpState call(
|
|
{String? email,
|
|
String? password,
|
|
String? repeatedPassword,
|
|
required bool isSubmitting,
|
|
required Option<String> passwordError,
|
|
required Option<String> repeatPasswordError,
|
|
required Option<String> emailError,
|
|
required Option<Either<UserProfile, FlowyError>> successOrFail}) {
|
|
return _SignUpState(
|
|
email: email,
|
|
password: password,
|
|
repeatedPassword: repeatedPassword,
|
|
isSubmitting: isSubmitting,
|
|
passwordError: passwordError,
|
|
repeatPasswordError: repeatPasswordError,
|
|
emailError: emailError,
|
|
successOrFail: successOrFail,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
const $SignUpState = _$SignUpStateTearOff();
|
|
|
|
/// @nodoc
|
|
mixin _$SignUpState {
|
|
String? get email => throw _privateConstructorUsedError;
|
|
String? get password => throw _privateConstructorUsedError;
|
|
String? get repeatedPassword => throw _privateConstructorUsedError;
|
|
bool get isSubmitting => throw _privateConstructorUsedError;
|
|
Option<String> get passwordError => throw _privateConstructorUsedError;
|
|
Option<String> get repeatPasswordError => throw _privateConstructorUsedError;
|
|
Option<String> get emailError => throw _privateConstructorUsedError;
|
|
Option<Either<UserProfile, FlowyError>> get successOrFail =>
|
|
throw _privateConstructorUsedError;
|
|
|
|
@JsonKey(ignore: true)
|
|
$SignUpStateCopyWith<SignUpState> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SignUpStateCopyWith<$Res> {
|
|
factory $SignUpStateCopyWith(
|
|
SignUpState value, $Res Function(SignUpState) then) =
|
|
_$SignUpStateCopyWithImpl<$Res>;
|
|
$Res call(
|
|
{String? email,
|
|
String? password,
|
|
String? repeatedPassword,
|
|
bool isSubmitting,
|
|
Option<String> passwordError,
|
|
Option<String> repeatPasswordError,
|
|
Option<String> emailError,
|
|
Option<Either<UserProfile, FlowyError>> successOrFail});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SignUpStateCopyWithImpl<$Res> implements $SignUpStateCopyWith<$Res> {
|
|
_$SignUpStateCopyWithImpl(this._value, this._then);
|
|
|
|
final SignUpState _value;
|
|
// ignore: unused_field
|
|
final $Res Function(SignUpState) _then;
|
|
|
|
@override
|
|
$Res call({
|
|
Object? email = freezed,
|
|
Object? password = freezed,
|
|
Object? repeatedPassword = freezed,
|
|
Object? isSubmitting = freezed,
|
|
Object? passwordError = freezed,
|
|
Object? repeatPasswordError = freezed,
|
|
Object? emailError = freezed,
|
|
Object? successOrFail = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
email: email == freezed
|
|
? _value.email
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
password: password == freezed
|
|
? _value.password
|
|
: password // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
repeatedPassword: repeatedPassword == freezed
|
|
? _value.repeatedPassword
|
|
: repeatedPassword // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
isSubmitting: isSubmitting == freezed
|
|
? _value.isSubmitting
|
|
: isSubmitting // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
passwordError: passwordError == freezed
|
|
? _value.passwordError
|
|
: passwordError // ignore: cast_nullable_to_non_nullable
|
|
as Option<String>,
|
|
repeatPasswordError: repeatPasswordError == freezed
|
|
? _value.repeatPasswordError
|
|
: repeatPasswordError // ignore: cast_nullable_to_non_nullable
|
|
as Option<String>,
|
|
emailError: emailError == freezed
|
|
? _value.emailError
|
|
: emailError // ignore: cast_nullable_to_non_nullable
|
|
as Option<String>,
|
|
successOrFail: successOrFail == freezed
|
|
? _value.successOrFail
|
|
: successOrFail // ignore: cast_nullable_to_non_nullable
|
|
as Option<Either<UserProfile, FlowyError>>,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$SignUpStateCopyWith<$Res>
|
|
implements $SignUpStateCopyWith<$Res> {
|
|
factory _$SignUpStateCopyWith(
|
|
_SignUpState value, $Res Function(_SignUpState) then) =
|
|
__$SignUpStateCopyWithImpl<$Res>;
|
|
@override
|
|
$Res call(
|
|
{String? email,
|
|
String? password,
|
|
String? repeatedPassword,
|
|
bool isSubmitting,
|
|
Option<String> passwordError,
|
|
Option<String> repeatPasswordError,
|
|
Option<String> emailError,
|
|
Option<Either<UserProfile, FlowyError>> successOrFail});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$SignUpStateCopyWithImpl<$Res> extends _$SignUpStateCopyWithImpl<$Res>
|
|
implements _$SignUpStateCopyWith<$Res> {
|
|
__$SignUpStateCopyWithImpl(
|
|
_SignUpState _value, $Res Function(_SignUpState) _then)
|
|
: super(_value, (v) => _then(v as _SignUpState));
|
|
|
|
@override
|
|
_SignUpState get _value => super._value as _SignUpState;
|
|
|
|
@override
|
|
$Res call({
|
|
Object? email = freezed,
|
|
Object? password = freezed,
|
|
Object? repeatedPassword = freezed,
|
|
Object? isSubmitting = freezed,
|
|
Object? passwordError = freezed,
|
|
Object? repeatPasswordError = freezed,
|
|
Object? emailError = freezed,
|
|
Object? successOrFail = freezed,
|
|
}) {
|
|
return _then(_SignUpState(
|
|
email: email == freezed
|
|
? _value.email
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
password: password == freezed
|
|
? _value.password
|
|
: password // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
repeatedPassword: repeatedPassword == freezed
|
|
? _value.repeatedPassword
|
|
: repeatedPassword // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
isSubmitting: isSubmitting == freezed
|
|
? _value.isSubmitting
|
|
: isSubmitting // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
passwordError: passwordError == freezed
|
|
? _value.passwordError
|
|
: passwordError // ignore: cast_nullable_to_non_nullable
|
|
as Option<String>,
|
|
repeatPasswordError: repeatPasswordError == freezed
|
|
? _value.repeatPasswordError
|
|
: repeatPasswordError // ignore: cast_nullable_to_non_nullable
|
|
as Option<String>,
|
|
emailError: emailError == freezed
|
|
? _value.emailError
|
|
: emailError // ignore: cast_nullable_to_non_nullable
|
|
as Option<String>,
|
|
successOrFail: successOrFail == freezed
|
|
? _value.successOrFail
|
|
: successOrFail // ignore: cast_nullable_to_non_nullable
|
|
as Option<Either<UserProfile, FlowyError>>,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$_SignUpState implements _SignUpState {
|
|
const _$_SignUpState(
|
|
{this.email,
|
|
this.password,
|
|
this.repeatedPassword,
|
|
required this.isSubmitting,
|
|
required this.passwordError,
|
|
required this.repeatPasswordError,
|
|
required this.emailError,
|
|
required this.successOrFail});
|
|
|
|
@override
|
|
final String? email;
|
|
@override
|
|
final String? password;
|
|
@override
|
|
final String? repeatedPassword;
|
|
@override
|
|
final bool isSubmitting;
|
|
@override
|
|
final Option<String> passwordError;
|
|
@override
|
|
final Option<String> repeatPasswordError;
|
|
@override
|
|
final Option<String> emailError;
|
|
@override
|
|
final Option<Either<UserProfile, FlowyError>> successOrFail;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SignUpState(email: $email, password: $password, repeatedPassword: $repeatedPassword, isSubmitting: $isSubmitting, passwordError: $passwordError, repeatPasswordError: $repeatPasswordError, emailError: $emailError, successOrFail: $successOrFail)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(dynamic other) {
|
|
return identical(this, other) ||
|
|
(other is _SignUpState &&
|
|
(identical(other.email, email) ||
|
|
const DeepCollectionEquality().equals(other.email, email)) &&
|
|
(identical(other.password, password) ||
|
|
const DeepCollectionEquality()
|
|
.equals(other.password, password)) &&
|
|
(identical(other.repeatedPassword, repeatedPassword) ||
|
|
const DeepCollectionEquality()
|
|
.equals(other.repeatedPassword, repeatedPassword)) &&
|
|
(identical(other.isSubmitting, isSubmitting) ||
|
|
const DeepCollectionEquality()
|
|
.equals(other.isSubmitting, isSubmitting)) &&
|
|
(identical(other.passwordError, passwordError) ||
|
|
const DeepCollectionEquality()
|
|
.equals(other.passwordError, passwordError)) &&
|
|
(identical(other.repeatPasswordError, repeatPasswordError) ||
|
|
const DeepCollectionEquality()
|
|
.equals(other.repeatPasswordError, repeatPasswordError)) &&
|
|
(identical(other.emailError, emailError) ||
|
|
const DeepCollectionEquality()
|
|
.equals(other.emailError, emailError)) &&
|
|
(identical(other.successOrFail, successOrFail) ||
|
|
const DeepCollectionEquality()
|
|
.equals(other.successOrFail, successOrFail)));
|
|
}
|
|
|
|
@override
|
|
int get hashCode =>
|
|
runtimeType.hashCode ^
|
|
const DeepCollectionEquality().hash(email) ^
|
|
const DeepCollectionEquality().hash(password) ^
|
|
const DeepCollectionEquality().hash(repeatedPassword) ^
|
|
const DeepCollectionEquality().hash(isSubmitting) ^
|
|
const DeepCollectionEquality().hash(passwordError) ^
|
|
const DeepCollectionEquality().hash(repeatPasswordError) ^
|
|
const DeepCollectionEquality().hash(emailError) ^
|
|
const DeepCollectionEquality().hash(successOrFail);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
_$SignUpStateCopyWith<_SignUpState> get copyWith =>
|
|
__$SignUpStateCopyWithImpl<_SignUpState>(this, _$identity);
|
|
}
|
|
|
|
abstract class _SignUpState implements SignUpState {
|
|
const factory _SignUpState(
|
|
{String? email,
|
|
String? password,
|
|
String? repeatedPassword,
|
|
required bool isSubmitting,
|
|
required Option<String> passwordError,
|
|
required Option<String> repeatPasswordError,
|
|
required Option<String> emailError,
|
|
required Option<Either<UserProfile, FlowyError>> successOrFail}) =
|
|
_$_SignUpState;
|
|
|
|
@override
|
|
String? get email => throw _privateConstructorUsedError;
|
|
@override
|
|
String? get password => throw _privateConstructorUsedError;
|
|
@override
|
|
String? get repeatedPassword => throw _privateConstructorUsedError;
|
|
@override
|
|
bool get isSubmitting => throw _privateConstructorUsedError;
|
|
@override
|
|
Option<String> get passwordError => throw _privateConstructorUsedError;
|
|
@override
|
|
Option<String> get repeatPasswordError => throw _privateConstructorUsedError;
|
|
@override
|
|
Option<String> get emailError => throw _privateConstructorUsedError;
|
|
@override
|
|
Option<Either<UserProfile, FlowyError>> get successOrFail =>
|
|
throw _privateConstructorUsedError;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$SignUpStateCopyWith<_SignUpState> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|