mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 09:16:19 +01:00
78 lines
2.3 KiB
Dart
78 lines
2.3 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'language_settings.dart';
|
|
|
|
// **************************************************************************
|
|
// CopyWithLintRuleGenerator
|
|
// **************************************************************************
|
|
|
|
// ignore_for_file: library_private_types_in_public_api, duplicate_ignore
|
|
|
|
// **************************************************************************
|
|
// CopyWithGenerator
|
|
// **************************************************************************
|
|
|
|
abstract class $_StateCopyWithWorker {
|
|
_State call({language_util.AppLanguage? selected, ExceptionEvent? error});
|
|
}
|
|
|
|
class _$_StateCopyWithWorkerImpl implements $_StateCopyWithWorker {
|
|
_$_StateCopyWithWorkerImpl(this.that);
|
|
|
|
@override
|
|
_State call({dynamic selected, dynamic error = copyWithNull}) {
|
|
return _State(
|
|
selected: selected as language_util.AppLanguage? ?? that.selected,
|
|
error: error == copyWithNull ? that.error : error as ExceptionEvent?);
|
|
}
|
|
|
|
final _State that;
|
|
}
|
|
|
|
extension $_StateCopyWith on _State {
|
|
$_StateCopyWithWorker get copyWith => _$copyWith;
|
|
$_StateCopyWithWorker get _$copyWith => _$_StateCopyWithWorkerImpl(this);
|
|
}
|
|
|
|
// **************************************************************************
|
|
// NpLogGenerator
|
|
// **************************************************************************
|
|
|
|
extension _$_BlocNpLog on _Bloc {
|
|
// ignore: unused_element
|
|
Logger get _log => log;
|
|
|
|
static final log = Logger("widget.settings.language_settings._Bloc");
|
|
}
|
|
|
|
// **************************************************************************
|
|
// ToStringGenerator
|
|
// **************************************************************************
|
|
|
|
extension _$_StateToString on _State {
|
|
String _$toString() {
|
|
// ignore: unnecessary_string_interpolations
|
|
return "_State {selected: $selected, error: $error}";
|
|
}
|
|
}
|
|
|
|
extension _$_InitToString on _Init {
|
|
String _$toString() {
|
|
// ignore: unnecessary_string_interpolations
|
|
return "_Init {}";
|
|
}
|
|
}
|
|
|
|
extension _$_SelectLanguageToString on _SelectLanguage {
|
|
String _$toString() {
|
|
// ignore: unnecessary_string_interpolations
|
|
return "_SelectLanguage {lang: $lang}";
|
|
}
|
|
}
|
|
|
|
extension _$_SetErrorToString on _SetError {
|
|
String _$toString() {
|
|
// ignore: unnecessary_string_interpolations
|
|
return "_SetError {error: $error, stackTrace: $stackTrace}";
|
|
}
|
|
}
|