2022-12-16 16:01:04 +01:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'sign_in.dart';
|
|
|
|
|
2024-10-16 19:51:49 +02:00
|
|
|
// **************************************************************************
|
|
|
|
// CopyWithLintRuleGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
// ignore_for_file: library_private_types_in_public_api, duplicate_ignore
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// CopyWithGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
abstract class $_StateCopyWithWorker {
|
|
|
|
_State call(
|
|
|
|
{_Scheme? scheme,
|
|
|
|
String? serverUrl,
|
2024-10-18 18:52:38 +02:00
|
|
|
String? username,
|
|
|
|
String? password,
|
|
|
|
bool? shouldObscurePassword,
|
|
|
|
_ConnectArg? connectArg,
|
2024-10-16 19:51:49 +02:00
|
|
|
Account? connectedAccount,
|
|
|
|
bool? isConnecting,
|
|
|
|
bool? isCompleted,
|
2024-10-18 18:52:38 +02:00
|
|
|
bool? isAltMode,
|
2024-10-16 19:51:49 +02:00
|
|
|
ExceptionEvent? error});
|
|
|
|
}
|
|
|
|
|
|
|
|
class _$_StateCopyWithWorkerImpl implements $_StateCopyWithWorker {
|
|
|
|
_$_StateCopyWithWorkerImpl(this.that);
|
|
|
|
|
|
|
|
@override
|
|
|
|
_State call(
|
|
|
|
{dynamic scheme,
|
|
|
|
dynamic serverUrl,
|
2024-10-18 18:52:38 +02:00
|
|
|
dynamic username,
|
|
|
|
dynamic password,
|
|
|
|
dynamic shouldObscurePassword,
|
|
|
|
dynamic connectArg = copyWithNull,
|
2024-10-16 19:51:49 +02:00
|
|
|
dynamic connectedAccount = copyWithNull,
|
|
|
|
dynamic isConnecting,
|
|
|
|
dynamic isCompleted,
|
2024-10-18 18:52:38 +02:00
|
|
|
dynamic isAltMode,
|
2024-10-16 19:51:49 +02:00
|
|
|
dynamic error = copyWithNull}) {
|
|
|
|
return _State(
|
|
|
|
scheme: scheme as _Scheme? ?? that.scheme,
|
|
|
|
serverUrl: serverUrl as String? ?? that.serverUrl,
|
2024-10-18 18:52:38 +02:00
|
|
|
username: username as String? ?? that.username,
|
|
|
|
password: password as String? ?? that.password,
|
|
|
|
shouldObscurePassword:
|
|
|
|
shouldObscurePassword as bool? ?? that.shouldObscurePassword,
|
|
|
|
connectArg: connectArg == copyWithNull
|
|
|
|
? that.connectArg
|
|
|
|
: connectArg as _ConnectArg?,
|
2024-10-16 19:51:49 +02:00
|
|
|
connectedAccount: connectedAccount == copyWithNull
|
|
|
|
? that.connectedAccount
|
|
|
|
: connectedAccount as Account?,
|
|
|
|
isConnecting: isConnecting as bool? ?? that.isConnecting,
|
|
|
|
isCompleted: isCompleted as bool? ?? that.isCompleted,
|
2024-10-18 18:52:38 +02:00
|
|
|
isAltMode: isAltMode as bool? ?? that.isAltMode,
|
2024-10-16 19:51:49 +02:00
|
|
|
error: error == copyWithNull ? that.error : error as ExceptionEvent?);
|
|
|
|
}
|
|
|
|
|
|
|
|
final _State that;
|
|
|
|
}
|
|
|
|
|
|
|
|
extension $_StateCopyWith on _State {
|
|
|
|
$_StateCopyWithWorker get copyWith => _$copyWith;
|
|
|
|
$_StateCopyWithWorker get _$copyWith => _$_StateCopyWithWorkerImpl(this);
|
|
|
|
}
|
|
|
|
|
2022-12-16 16:01:04 +01:00
|
|
|
// **************************************************************************
|
|
|
|
// NpLogGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
2024-10-18 18:52:38 +02:00
|
|
|
extension _$_WrappedSignInStateNpLog on _WrappedSignInState {
|
2022-12-16 16:01:04 +01:00
|
|
|
// ignore: unused_element
|
2022-12-20 17:49:14 +01:00
|
|
|
Logger get _log => log;
|
|
|
|
|
2024-10-18 18:52:38 +02:00
|
|
|
static final log = Logger("widget.sign_in._WrappedSignInState");
|
2024-10-16 19:51:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
extension _$_BlocNpLog on _Bloc {
|
|
|
|
// ignore: unused_element
|
|
|
|
Logger get _log => log;
|
|
|
|
|
|
|
|
static final log = Logger("widget.sign_in._Bloc");
|
|
|
|
}
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// ToStringGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
extension _$_StateToString on _State {
|
|
|
|
String _$toString() {
|
|
|
|
// ignore: unnecessary_string_interpolations
|
2024-10-18 18:52:38 +02:00
|
|
|
return "_State {scheme: ${scheme.name}, serverUrl: $serverUrl, username: $username, password: $password, shouldObscurePassword: $shouldObscurePassword, connectArg: $connectArg, connectedAccount: $connectedAccount, isConnecting: $isConnecting, isCompleted: $isCompleted, isAltMode: $isAltMode, error: $error}";
|
2024-10-16 19:51:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
extension _$_SetSchemeToString on _SetScheme {
|
|
|
|
String _$toString() {
|
|
|
|
// ignore: unnecessary_string_interpolations
|
|
|
|
return "_SetScheme {value: ${value.name}}";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
extension _$_SetServerUrlToString on _SetServerUrl {
|
|
|
|
String _$toString() {
|
|
|
|
// ignore: unnecessary_string_interpolations
|
|
|
|
return "_SetServerUrl {value: $value}";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
extension _$_ConnectToString on _Connect {
|
|
|
|
String _$toString() {
|
|
|
|
// ignore: unnecessary_string_interpolations
|
|
|
|
return "_Connect {}";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
extension _$_SetConnectedAccountToString on _SetConnectedAccount {
|
|
|
|
String _$toString() {
|
|
|
|
// ignore: unnecessary_string_interpolations
|
|
|
|
return "_SetConnectedAccount {value: $value}";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-10-18 18:52:38 +02:00
|
|
|
extension _$_SetAltModeToString on _SetAltMode {
|
|
|
|
String _$toString() {
|
|
|
|
// ignore: unnecessary_string_interpolations
|
|
|
|
return "_SetAltMode {value: $value}";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
extension _$_SetUsernameToString on _SetUsername {
|
|
|
|
String _$toString() {
|
|
|
|
// ignore: unnecessary_string_interpolations
|
|
|
|
return "_SetUsername {value: $value}";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
extension _$_SetPasswordToString on _SetPassword {
|
|
|
|
String _$toString() {
|
|
|
|
// ignore: unnecessary_string_interpolations
|
|
|
|
return "_SetPassword {value: $value}";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
extension _$_SetObscurePasswordToString on _SetObscurePassword {
|
|
|
|
String _$toString() {
|
|
|
|
// ignore: unnecessary_string_interpolations
|
|
|
|
return "_SetObscurePassword {value: $value}";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-10-16 19:51:49 +02:00
|
|
|
extension _$_SetErrorToString on _SetError {
|
|
|
|
String _$toString() {
|
|
|
|
// ignore: unnecessary_string_interpolations
|
|
|
|
return "_SetError {error: $error, stackTrace: $stackTrace}";
|
|
|
|
}
|
2022-12-16 16:01:04 +01:00
|
|
|
}
|
2024-10-18 18:52:38 +02:00
|
|
|
|
|
|
|
extension _$_ConnectArgToString on _ConnectArg {
|
|
|
|
String _$toString() {
|
|
|
|
// ignore: unnecessary_string_interpolations
|
|
|
|
return "_ConnectArg {scheme: $scheme, address: $address, username: $username, password: $password}";
|
|
|
|
}
|
|
|
|
}
|