// GENERATED CODE - DO NOT MODIFY BY HAND part of 'ui_state.dart'; // ************************************************************************** // BuiltValueGenerator // ************************************************************************** const AppLayout _$mobile = const AppLayout._('mobile'); const AppLayout _$tablet = const AppLayout._('tablet'); const AppLayout _$desktop = const AppLayout._('desktop'); AppLayout _$valueOf(String name) { switch (name) { case 'mobile': return _$mobile; case 'tablet': return _$tablet; case 'desktop': return _$desktop; default: throw new ArgumentError(name); } } final BuiltSet _$values = new BuiltSet(const [ _$mobile, _$tablet, _$desktop, ]); const AppSidebar _$menu = const AppSidebar._('menu'); const AppSidebar _$history = const AppSidebar._('history'); AppSidebar _$valueOfSidebar(String name) { switch (name) { case 'menu': return _$menu; case 'history': return _$history; default: throw new ArgumentError(name); } } final BuiltSet _$valuesSidebar = new BuiltSet(const [ _$menu, _$history, ]); const AppSidebarMode _$float = const AppSidebarMode._('float'); const AppSidebarMode _$visible = const AppSidebarMode._('visible'); const AppSidebarMode _$collapse = const AppSidebarMode._('collapse'); AppSidebarMode _$valueOfSidebarMode(String name) { switch (name) { case 'float': return _$float; case 'visible': return _$visible; case 'collapse': return _$collapse; default: throw new ArgumentError(name); } } final BuiltSet _$valuesSidebarMode = new BuiltSet(const [ _$float, _$visible, _$collapse, ]); Serializer _$uIStateSerializer = new _$UIStateSerializer(); Serializer _$appLayoutSerializer = new _$AppLayoutSerializer(); Serializer _$appSidebarSerializer = new _$AppSidebarSerializer(); Serializer _$appSidebarModeSerializer = new _$AppSidebarModeSerializer(); Serializer _$historyRecordSerializer = new _$HistoryRecordSerializer(); class _$UIStateSerializer implements StructuredSerializer { @override final Iterable types = const [UIState, _$UIState]; @override final String wireName = 'UIState'; @override Iterable serialize(Serializers serializers, UIState object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'layout', serializers.serialize(object.layout, specifiedType: const FullType(AppLayout)), 'menuSidebarMode', serializers.serialize(object.menuSidebarMode, specifiedType: const FullType(AppSidebarMode)), 'historySidebarMode', serializers.serialize(object.historySidebarMode, specifiedType: const FullType(AppSidebarMode)), 'isTesting', serializers.serialize(object.isTesting, specifiedType: const FullType(bool)), 'isMenuVisible', serializers.serialize(object.isMenuVisible, specifiedType: const FullType(bool)), 'isHistoryVisible', serializers.serialize(object.isHistoryVisible, specifiedType: const FullType(bool)), 'selectedCompanyIndex', serializers.serialize(object.selectedCompanyIndex, specifiedType: const FullType(int)), 'currentRoute', serializers.serialize(object.currentRoute, specifiedType: const FullType(String)), 'previousRoute', serializers.serialize(object.previousRoute, specifiedType: const FullType(String)), 'enableDarkMode', serializers.serialize(object.enableDarkMode, specifiedType: const FullType(bool)), 'longPressSelectionIsDefault', serializers.serialize(object.longPressSelectionIsDefault, specifiedType: const FullType(bool)), 'requireAuthentication', serializers.serialize(object.requireAuthentication, specifiedType: const FullType(bool)), 'emailPayment', serializers.serialize(object.emailPayment, specifiedType: const FullType(bool)), 'autoStartTasks', serializers.serialize(object.autoStartTasks, specifiedType: const FullType(bool)), 'addDocumentsToInvoice', serializers.serialize(object.addDocumentsToInvoice, specifiedType: const FullType(bool)), 'filterClearedAt', serializers.serialize(object.filterClearedAt, specifiedType: const FullType(int)), 'dashboardUIState', serializers.serialize(object.dashboardUIState, specifiedType: const FullType(DashboardUIState)), 'productUIState', serializers.serialize(object.productUIState, specifiedType: const FullType(ProductUIState)), 'clientUIState', serializers.serialize(object.clientUIState, specifiedType: const FullType(ClientUIState)), 'invoiceUIState', serializers.serialize(object.invoiceUIState, specifiedType: const FullType(InvoiceUIState)), 'userUIState', serializers.serialize(object.userUIState, specifiedType: const FullType(UserUIState)), 'taxRateUIState', serializers.serialize(object.taxRateUIState, specifiedType: const FullType(TaxRateUIState)), 'companyGatewayUIState', serializers.serialize(object.companyGatewayUIState, specifiedType: const FullType(CompanyGatewayUIState)), 'groupUIState', serializers.serialize(object.groupUIState, specifiedType: const FullType(GroupUIState)), 'documentUIState', serializers.serialize(object.documentUIState, specifiedType: const FullType(DocumentUIState)), 'expenseUIState', serializers.serialize(object.expenseUIState, specifiedType: const FullType(ExpenseUIState)), 'vendorUIState', serializers.serialize(object.vendorUIState, specifiedType: const FullType(VendorUIState)), 'taskUIState', serializers.serialize(object.taskUIState, specifiedType: const FullType(TaskUIState)), 'projectUIState', serializers.serialize(object.projectUIState, specifiedType: const FullType(ProjectUIState)), 'paymentUIState', serializers.serialize(object.paymentUIState, specifiedType: const FullType(PaymentUIState)), 'quoteUIState', serializers.serialize(object.quoteUIState, specifiedType: const FullType(QuoteUIState)), 'settingsUIState', serializers.serialize(object.settingsUIState, specifiedType: const FullType(SettingsUIState)), 'historyList', serializers.serialize(object.historyList, specifiedType: const FullType(BuiltList, const [const FullType(HistoryRecord)])), ]; if (object.accentColor != null) { result ..add('accentColor') ..add(serializers.serialize(object.accentColor, specifiedType: const FullType(String))); } if (object.filter != null) { result ..add('filter') ..add(serializers.serialize(object.filter, specifiedType: const FullType(String))); } return result; } @override UIState deserialize(Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new UIStateBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as String; iterator.moveNext(); final dynamic value = iterator.current; switch (key) { case 'layout': result.layout = serializers.deserialize(value, specifiedType: const FullType(AppLayout)) as AppLayout; break; case 'menuSidebarMode': result.menuSidebarMode = serializers.deserialize(value, specifiedType: const FullType(AppSidebarMode)) as AppSidebarMode; break; case 'historySidebarMode': result.historySidebarMode = serializers.deserialize(value, specifiedType: const FullType(AppSidebarMode)) as AppSidebarMode; break; case 'isTesting': result.isTesting = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'isMenuVisible': result.isMenuVisible = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'isHistoryVisible': result.isHistoryVisible = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'selectedCompanyIndex': result.selectedCompanyIndex = serializers.deserialize(value, specifiedType: const FullType(int)) as int; break; case 'currentRoute': result.currentRoute = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'previousRoute': result.previousRoute = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'enableDarkMode': result.enableDarkMode = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'accentColor': result.accentColor = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'longPressSelectionIsDefault': result.longPressSelectionIsDefault = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'requireAuthentication': result.requireAuthentication = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'emailPayment': result.emailPayment = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'autoStartTasks': result.autoStartTasks = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'addDocumentsToInvoice': result.addDocumentsToInvoice = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'filter': result.filter = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'filterClearedAt': result.filterClearedAt = serializers.deserialize(value, specifiedType: const FullType(int)) as int; break; case 'dashboardUIState': result.dashboardUIState.replace(serializers.deserialize(value, specifiedType: const FullType(DashboardUIState)) as DashboardUIState); break; case 'productUIState': result.productUIState.replace(serializers.deserialize(value, specifiedType: const FullType(ProductUIState)) as ProductUIState); break; case 'clientUIState': result.clientUIState.replace(serializers.deserialize(value, specifiedType: const FullType(ClientUIState)) as ClientUIState); break; case 'invoiceUIState': result.invoiceUIState.replace(serializers.deserialize(value, specifiedType: const FullType(InvoiceUIState)) as InvoiceUIState); break; case 'userUIState': result.userUIState.replace(serializers.deserialize(value, specifiedType: const FullType(UserUIState)) as UserUIState); break; case 'taxRateUIState': result.taxRateUIState.replace(serializers.deserialize(value, specifiedType: const FullType(TaxRateUIState)) as TaxRateUIState); break; case 'companyGatewayUIState': result.companyGatewayUIState.replace(serializers.deserialize(value, specifiedType: const FullType(CompanyGatewayUIState)) as CompanyGatewayUIState); break; case 'groupUIState': result.groupUIState.replace(serializers.deserialize(value, specifiedType: const FullType(GroupUIState)) as GroupUIState); break; case 'documentUIState': result.documentUIState.replace(serializers.deserialize(value, specifiedType: const FullType(DocumentUIState)) as DocumentUIState); break; case 'expenseUIState': result.expenseUIState.replace(serializers.deserialize(value, specifiedType: const FullType(ExpenseUIState)) as ExpenseUIState); break; case 'vendorUIState': result.vendorUIState.replace(serializers.deserialize(value, specifiedType: const FullType(VendorUIState)) as VendorUIState); break; case 'taskUIState': result.taskUIState.replace(serializers.deserialize(value, specifiedType: const FullType(TaskUIState)) as TaskUIState); break; case 'projectUIState': result.projectUIState.replace(serializers.deserialize(value, specifiedType: const FullType(ProjectUIState)) as ProjectUIState); break; case 'paymentUIState': result.paymentUIState.replace(serializers.deserialize(value, specifiedType: const FullType(PaymentUIState)) as PaymentUIState); break; case 'quoteUIState': result.quoteUIState.replace(serializers.deserialize(value, specifiedType: const FullType(QuoteUIState)) as QuoteUIState); break; case 'settingsUIState': result.settingsUIState.replace(serializers.deserialize(value, specifiedType: const FullType(SettingsUIState)) as SettingsUIState); break; case 'historyList': result.historyList.replace(serializers.deserialize(value, specifiedType: const FullType( BuiltList, const [const FullType(HistoryRecord)])) as BuiltList); break; } } return result.build(); } } class _$AppLayoutSerializer implements PrimitiveSerializer { @override final Iterable types = const [AppLayout]; @override final String wireName = 'AppLayout'; @override Object serialize(Serializers serializers, AppLayout object, {FullType specifiedType = FullType.unspecified}) => object.name; @override AppLayout deserialize(Serializers serializers, Object serialized, {FullType specifiedType = FullType.unspecified}) => AppLayout.valueOf(serialized as String); } class _$AppSidebarSerializer implements PrimitiveSerializer { @override final Iterable types = const [AppSidebar]; @override final String wireName = 'AppSidebar'; @override Object serialize(Serializers serializers, AppSidebar object, {FullType specifiedType = FullType.unspecified}) => object.name; @override AppSidebar deserialize(Serializers serializers, Object serialized, {FullType specifiedType = FullType.unspecified}) => AppSidebar.valueOf(serialized as String); } class _$AppSidebarModeSerializer implements PrimitiveSerializer { @override final Iterable types = const [AppSidebarMode]; @override final String wireName = 'AppSidebarMode'; @override Object serialize(Serializers serializers, AppSidebarMode object, {FullType specifiedType = FullType.unspecified}) => object.name; @override AppSidebarMode deserialize(Serializers serializers, Object serialized, {FullType specifiedType = FullType.unspecified}) => AppSidebarMode.valueOf(serialized as String); } class _$HistoryRecordSerializer implements StructuredSerializer { @override final Iterable types = const [HistoryRecord, _$HistoryRecord]; @override final String wireName = 'HistoryRecord'; @override Iterable serialize(Serializers serializers, HistoryRecord object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'id', serializers.serialize(object.id, specifiedType: const FullType(String)), 'entityType', serializers.serialize(object.entityType, specifiedType: const FullType(EntityType)), 'timestamp', serializers.serialize(object.timestamp, specifiedType: const FullType(int)), ]; return result; } @override HistoryRecord deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new HistoryRecordBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as String; iterator.moveNext(); final dynamic value = iterator.current; switch (key) { case 'id': result.id = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'entityType': result.entityType = serializers.deserialize(value, specifiedType: const FullType(EntityType)) as EntityType; break; case 'timestamp': result.timestamp = serializers.deserialize(value, specifiedType: const FullType(int)) as int; break; } } return result.build(); } } class _$UIState extends UIState { @override final AppLayout layout; @override final AppSidebarMode menuSidebarMode; @override final AppSidebarMode historySidebarMode; @override final bool isTesting; @override final bool isMenuVisible; @override final bool isHistoryVisible; @override final int selectedCompanyIndex; @override final String currentRoute; @override final String previousRoute; @override final bool enableDarkMode; @override final String accentColor; @override final bool longPressSelectionIsDefault; @override final bool requireAuthentication; @override final bool emailPayment; @override final bool autoStartTasks; @override final bool addDocumentsToInvoice; @override final String filter; @override final int filterClearedAt; @override final DashboardUIState dashboardUIState; @override final ProductUIState productUIState; @override final ClientUIState clientUIState; @override final InvoiceUIState invoiceUIState; @override final UserUIState userUIState; @override final TaxRateUIState taxRateUIState; @override final CompanyGatewayUIState companyGatewayUIState; @override final GroupUIState groupUIState; @override final DocumentUIState documentUIState; @override final ExpenseUIState expenseUIState; @override final VendorUIState vendorUIState; @override final TaskUIState taskUIState; @override final ProjectUIState projectUIState; @override final PaymentUIState paymentUIState; @override final QuoteUIState quoteUIState; @override final SettingsUIState settingsUIState; @override final BuiltList historyList; factory _$UIState([void Function(UIStateBuilder) updates]) => (new UIStateBuilder()..update(updates)).build(); _$UIState._( {this.layout, this.menuSidebarMode, this.historySidebarMode, this.isTesting, this.isMenuVisible, this.isHistoryVisible, this.selectedCompanyIndex, this.currentRoute, this.previousRoute, this.enableDarkMode, this.accentColor, this.longPressSelectionIsDefault, this.requireAuthentication, this.emailPayment, this.autoStartTasks, this.addDocumentsToInvoice, this.filter, this.filterClearedAt, this.dashboardUIState, this.productUIState, this.clientUIState, this.invoiceUIState, this.userUIState, this.taxRateUIState, this.companyGatewayUIState, this.groupUIState, this.documentUIState, this.expenseUIState, this.vendorUIState, this.taskUIState, this.projectUIState, this.paymentUIState, this.quoteUIState, this.settingsUIState, this.historyList}) : super._() { if (layout == null) { throw new BuiltValueNullFieldError('UIState', 'layout'); } if (menuSidebarMode == null) { throw new BuiltValueNullFieldError('UIState', 'menuSidebarMode'); } if (historySidebarMode == null) { throw new BuiltValueNullFieldError('UIState', 'historySidebarMode'); } if (isTesting == null) { throw new BuiltValueNullFieldError('UIState', 'isTesting'); } if (isMenuVisible == null) { throw new BuiltValueNullFieldError('UIState', 'isMenuVisible'); } if (isHistoryVisible == null) { throw new BuiltValueNullFieldError('UIState', 'isHistoryVisible'); } if (selectedCompanyIndex == null) { throw new BuiltValueNullFieldError('UIState', 'selectedCompanyIndex'); } if (currentRoute == null) { throw new BuiltValueNullFieldError('UIState', 'currentRoute'); } if (previousRoute == null) { throw new BuiltValueNullFieldError('UIState', 'previousRoute'); } if (enableDarkMode == null) { throw new BuiltValueNullFieldError('UIState', 'enableDarkMode'); } if (longPressSelectionIsDefault == null) { throw new BuiltValueNullFieldError( 'UIState', 'longPressSelectionIsDefault'); } if (requireAuthentication == null) { throw new BuiltValueNullFieldError('UIState', 'requireAuthentication'); } if (emailPayment == null) { throw new BuiltValueNullFieldError('UIState', 'emailPayment'); } if (autoStartTasks == null) { throw new BuiltValueNullFieldError('UIState', 'autoStartTasks'); } if (addDocumentsToInvoice == null) { throw new BuiltValueNullFieldError('UIState', 'addDocumentsToInvoice'); } if (filterClearedAt == null) { throw new BuiltValueNullFieldError('UIState', 'filterClearedAt'); } if (dashboardUIState == null) { throw new BuiltValueNullFieldError('UIState', 'dashboardUIState'); } if (productUIState == null) { throw new BuiltValueNullFieldError('UIState', 'productUIState'); } if (clientUIState == null) { throw new BuiltValueNullFieldError('UIState', 'clientUIState'); } if (invoiceUIState == null) { throw new BuiltValueNullFieldError('UIState', 'invoiceUIState'); } if (userUIState == null) { throw new BuiltValueNullFieldError('UIState', 'userUIState'); } if (taxRateUIState == null) { throw new BuiltValueNullFieldError('UIState', 'taxRateUIState'); } if (companyGatewayUIState == null) { throw new BuiltValueNullFieldError('UIState', 'companyGatewayUIState'); } if (groupUIState == null) { throw new BuiltValueNullFieldError('UIState', 'groupUIState'); } if (documentUIState == null) { throw new BuiltValueNullFieldError('UIState', 'documentUIState'); } if (expenseUIState == null) { throw new BuiltValueNullFieldError('UIState', 'expenseUIState'); } if (vendorUIState == null) { throw new BuiltValueNullFieldError('UIState', 'vendorUIState'); } if (taskUIState == null) { throw new BuiltValueNullFieldError('UIState', 'taskUIState'); } if (projectUIState == null) { throw new BuiltValueNullFieldError('UIState', 'projectUIState'); } if (paymentUIState == null) { throw new BuiltValueNullFieldError('UIState', 'paymentUIState'); } if (quoteUIState == null) { throw new BuiltValueNullFieldError('UIState', 'quoteUIState'); } if (settingsUIState == null) { throw new BuiltValueNullFieldError('UIState', 'settingsUIState'); } if (historyList == null) { throw new BuiltValueNullFieldError('UIState', 'historyList'); } } @override UIState rebuild(void Function(UIStateBuilder) updates) => (toBuilder()..update(updates)).build(); @override UIStateBuilder toBuilder() => new UIStateBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is UIState && layout == other.layout && menuSidebarMode == other.menuSidebarMode && historySidebarMode == other.historySidebarMode && isTesting == other.isTesting && isMenuVisible == other.isMenuVisible && isHistoryVisible == other.isHistoryVisible && selectedCompanyIndex == other.selectedCompanyIndex && currentRoute == other.currentRoute && previousRoute == other.previousRoute && enableDarkMode == other.enableDarkMode && accentColor == other.accentColor && longPressSelectionIsDefault == other.longPressSelectionIsDefault && requireAuthentication == other.requireAuthentication && emailPayment == other.emailPayment && autoStartTasks == other.autoStartTasks && addDocumentsToInvoice == other.addDocumentsToInvoice && filter == other.filter && filterClearedAt == other.filterClearedAt && dashboardUIState == other.dashboardUIState && productUIState == other.productUIState && clientUIState == other.clientUIState && invoiceUIState == other.invoiceUIState && userUIState == other.userUIState && taxRateUIState == other.taxRateUIState && companyGatewayUIState == other.companyGatewayUIState && groupUIState == other.groupUIState && documentUIState == other.documentUIState && expenseUIState == other.expenseUIState && vendorUIState == other.vendorUIState && taskUIState == other.taskUIState && projectUIState == other.projectUIState && paymentUIState == other.paymentUIState && quoteUIState == other.quoteUIState && settingsUIState == other.settingsUIState && historyList == other.historyList; } @override int get hashCode { return $jf($jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, layout.hashCode), menuSidebarMode.hashCode), historySidebarMode.hashCode), isTesting.hashCode), isMenuVisible.hashCode), isHistoryVisible.hashCode), selectedCompanyIndex.hashCode), currentRoute.hashCode), previousRoute.hashCode), enableDarkMode.hashCode), accentColor.hashCode), longPressSelectionIsDefault.hashCode), requireAuthentication.hashCode), emailPayment.hashCode), autoStartTasks.hashCode), addDocumentsToInvoice.hashCode), filter.hashCode), filterClearedAt.hashCode), dashboardUIState.hashCode), productUIState.hashCode), clientUIState.hashCode), invoiceUIState.hashCode), userUIState.hashCode), taxRateUIState.hashCode), companyGatewayUIState.hashCode), groupUIState.hashCode), documentUIState.hashCode), expenseUIState.hashCode), vendorUIState.hashCode), taskUIState.hashCode), projectUIState.hashCode), paymentUIState.hashCode), quoteUIState.hashCode), settingsUIState.hashCode), historyList.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('UIState') ..add('layout', layout) ..add('menuSidebarMode', menuSidebarMode) ..add('historySidebarMode', historySidebarMode) ..add('isTesting', isTesting) ..add('isMenuVisible', isMenuVisible) ..add('isHistoryVisible', isHistoryVisible) ..add('selectedCompanyIndex', selectedCompanyIndex) ..add('currentRoute', currentRoute) ..add('previousRoute', previousRoute) ..add('enableDarkMode', enableDarkMode) ..add('accentColor', accentColor) ..add('longPressSelectionIsDefault', longPressSelectionIsDefault) ..add('requireAuthentication', requireAuthentication) ..add('emailPayment', emailPayment) ..add('autoStartTasks', autoStartTasks) ..add('addDocumentsToInvoice', addDocumentsToInvoice) ..add('filter', filter) ..add('filterClearedAt', filterClearedAt) ..add('dashboardUIState', dashboardUIState) ..add('productUIState', productUIState) ..add('clientUIState', clientUIState) ..add('invoiceUIState', invoiceUIState) ..add('userUIState', userUIState) ..add('taxRateUIState', taxRateUIState) ..add('companyGatewayUIState', companyGatewayUIState) ..add('groupUIState', groupUIState) ..add('documentUIState', documentUIState) ..add('expenseUIState', expenseUIState) ..add('vendorUIState', vendorUIState) ..add('taskUIState', taskUIState) ..add('projectUIState', projectUIState) ..add('paymentUIState', paymentUIState) ..add('quoteUIState', quoteUIState) ..add('settingsUIState', settingsUIState) ..add('historyList', historyList)) .toString(); } } class UIStateBuilder implements Builder { _$UIState _$v; AppLayout _layout; AppLayout get layout => _$this._layout; set layout(AppLayout layout) => _$this._layout = layout; AppSidebarMode _menuSidebarMode; AppSidebarMode get menuSidebarMode => _$this._menuSidebarMode; set menuSidebarMode(AppSidebarMode menuSidebarMode) => _$this._menuSidebarMode = menuSidebarMode; AppSidebarMode _historySidebarMode; AppSidebarMode get historySidebarMode => _$this._historySidebarMode; set historySidebarMode(AppSidebarMode historySidebarMode) => _$this._historySidebarMode = historySidebarMode; bool _isTesting; bool get isTesting => _$this._isTesting; set isTesting(bool isTesting) => _$this._isTesting = isTesting; bool _isMenuVisible; bool get isMenuVisible => _$this._isMenuVisible; set isMenuVisible(bool isMenuVisible) => _$this._isMenuVisible = isMenuVisible; bool _isHistoryVisible; bool get isHistoryVisible => _$this._isHistoryVisible; set isHistoryVisible(bool isHistoryVisible) => _$this._isHistoryVisible = isHistoryVisible; int _selectedCompanyIndex; int get selectedCompanyIndex => _$this._selectedCompanyIndex; set selectedCompanyIndex(int selectedCompanyIndex) => _$this._selectedCompanyIndex = selectedCompanyIndex; String _currentRoute; String get currentRoute => _$this._currentRoute; set currentRoute(String currentRoute) => _$this._currentRoute = currentRoute; String _previousRoute; String get previousRoute => _$this._previousRoute; set previousRoute(String previousRoute) => _$this._previousRoute = previousRoute; bool _enableDarkMode; bool get enableDarkMode => _$this._enableDarkMode; set enableDarkMode(bool enableDarkMode) => _$this._enableDarkMode = enableDarkMode; String _accentColor; String get accentColor => _$this._accentColor; set accentColor(String accentColor) => _$this._accentColor = accentColor; bool _longPressSelectionIsDefault; bool get longPressSelectionIsDefault => _$this._longPressSelectionIsDefault; set longPressSelectionIsDefault(bool longPressSelectionIsDefault) => _$this._longPressSelectionIsDefault = longPressSelectionIsDefault; bool _requireAuthentication; bool get requireAuthentication => _$this._requireAuthentication; set requireAuthentication(bool requireAuthentication) => _$this._requireAuthentication = requireAuthentication; bool _emailPayment; bool get emailPayment => _$this._emailPayment; set emailPayment(bool emailPayment) => _$this._emailPayment = emailPayment; bool _autoStartTasks; bool get autoStartTasks => _$this._autoStartTasks; set autoStartTasks(bool autoStartTasks) => _$this._autoStartTasks = autoStartTasks; bool _addDocumentsToInvoice; bool get addDocumentsToInvoice => _$this._addDocumentsToInvoice; set addDocumentsToInvoice(bool addDocumentsToInvoice) => _$this._addDocumentsToInvoice = addDocumentsToInvoice; String _filter; String get filter => _$this._filter; set filter(String filter) => _$this._filter = filter; int _filterClearedAt; int get filterClearedAt => _$this._filterClearedAt; set filterClearedAt(int filterClearedAt) => _$this._filterClearedAt = filterClearedAt; DashboardUIStateBuilder _dashboardUIState; DashboardUIStateBuilder get dashboardUIState => _$this._dashboardUIState ??= new DashboardUIStateBuilder(); set dashboardUIState(DashboardUIStateBuilder dashboardUIState) => _$this._dashboardUIState = dashboardUIState; ProductUIStateBuilder _productUIState; ProductUIStateBuilder get productUIState => _$this._productUIState ??= new ProductUIStateBuilder(); set productUIState(ProductUIStateBuilder productUIState) => _$this._productUIState = productUIState; ClientUIStateBuilder _clientUIState; ClientUIStateBuilder get clientUIState => _$this._clientUIState ??= new ClientUIStateBuilder(); set clientUIState(ClientUIStateBuilder clientUIState) => _$this._clientUIState = clientUIState; InvoiceUIStateBuilder _invoiceUIState; InvoiceUIStateBuilder get invoiceUIState => _$this._invoiceUIState ??= new InvoiceUIStateBuilder(); set invoiceUIState(InvoiceUIStateBuilder invoiceUIState) => _$this._invoiceUIState = invoiceUIState; UserUIStateBuilder _userUIState; UserUIStateBuilder get userUIState => _$this._userUIState ??= new UserUIStateBuilder(); set userUIState(UserUIStateBuilder userUIState) => _$this._userUIState = userUIState; TaxRateUIStateBuilder _taxRateUIState; TaxRateUIStateBuilder get taxRateUIState => _$this._taxRateUIState ??= new TaxRateUIStateBuilder(); set taxRateUIState(TaxRateUIStateBuilder taxRateUIState) => _$this._taxRateUIState = taxRateUIState; CompanyGatewayUIStateBuilder _companyGatewayUIState; CompanyGatewayUIStateBuilder get companyGatewayUIState => _$this._companyGatewayUIState ??= new CompanyGatewayUIStateBuilder(); set companyGatewayUIState( CompanyGatewayUIStateBuilder companyGatewayUIState) => _$this._companyGatewayUIState = companyGatewayUIState; GroupUIStateBuilder _groupUIState; GroupUIStateBuilder get groupUIState => _$this._groupUIState ??= new GroupUIStateBuilder(); set groupUIState(GroupUIStateBuilder groupUIState) => _$this._groupUIState = groupUIState; DocumentUIStateBuilder _documentUIState; DocumentUIStateBuilder get documentUIState => _$this._documentUIState ??= new DocumentUIStateBuilder(); set documentUIState(DocumentUIStateBuilder documentUIState) => _$this._documentUIState = documentUIState; ExpenseUIStateBuilder _expenseUIState; ExpenseUIStateBuilder get expenseUIState => _$this._expenseUIState ??= new ExpenseUIStateBuilder(); set expenseUIState(ExpenseUIStateBuilder expenseUIState) => _$this._expenseUIState = expenseUIState; VendorUIStateBuilder _vendorUIState; VendorUIStateBuilder get vendorUIState => _$this._vendorUIState ??= new VendorUIStateBuilder(); set vendorUIState(VendorUIStateBuilder vendorUIState) => _$this._vendorUIState = vendorUIState; TaskUIStateBuilder _taskUIState; TaskUIStateBuilder get taskUIState => _$this._taskUIState ??= new TaskUIStateBuilder(); set taskUIState(TaskUIStateBuilder taskUIState) => _$this._taskUIState = taskUIState; ProjectUIStateBuilder _projectUIState; ProjectUIStateBuilder get projectUIState => _$this._projectUIState ??= new ProjectUIStateBuilder(); set projectUIState(ProjectUIStateBuilder projectUIState) => _$this._projectUIState = projectUIState; PaymentUIStateBuilder _paymentUIState; PaymentUIStateBuilder get paymentUIState => _$this._paymentUIState ??= new PaymentUIStateBuilder(); set paymentUIState(PaymentUIStateBuilder paymentUIState) => _$this._paymentUIState = paymentUIState; QuoteUIStateBuilder _quoteUIState; QuoteUIStateBuilder get quoteUIState => _$this._quoteUIState ??= new QuoteUIStateBuilder(); set quoteUIState(QuoteUIStateBuilder quoteUIState) => _$this._quoteUIState = quoteUIState; SettingsUIStateBuilder _settingsUIState; SettingsUIStateBuilder get settingsUIState => _$this._settingsUIState ??= new SettingsUIStateBuilder(); set settingsUIState(SettingsUIStateBuilder settingsUIState) => _$this._settingsUIState = settingsUIState; ListBuilder _historyList; ListBuilder get historyList => _$this._historyList ??= new ListBuilder(); set historyList(ListBuilder historyList) => _$this._historyList = historyList; UIStateBuilder(); UIStateBuilder get _$this { if (_$v != null) { _layout = _$v.layout; _menuSidebarMode = _$v.menuSidebarMode; _historySidebarMode = _$v.historySidebarMode; _isTesting = _$v.isTesting; _isMenuVisible = _$v.isMenuVisible; _isHistoryVisible = _$v.isHistoryVisible; _selectedCompanyIndex = _$v.selectedCompanyIndex; _currentRoute = _$v.currentRoute; _previousRoute = _$v.previousRoute; _enableDarkMode = _$v.enableDarkMode; _accentColor = _$v.accentColor; _longPressSelectionIsDefault = _$v.longPressSelectionIsDefault; _requireAuthentication = _$v.requireAuthentication; _emailPayment = _$v.emailPayment; _autoStartTasks = _$v.autoStartTasks; _addDocumentsToInvoice = _$v.addDocumentsToInvoice; _filter = _$v.filter; _filterClearedAt = _$v.filterClearedAt; _dashboardUIState = _$v.dashboardUIState?.toBuilder(); _productUIState = _$v.productUIState?.toBuilder(); _clientUIState = _$v.clientUIState?.toBuilder(); _invoiceUIState = _$v.invoiceUIState?.toBuilder(); _userUIState = _$v.userUIState?.toBuilder(); _taxRateUIState = _$v.taxRateUIState?.toBuilder(); _companyGatewayUIState = _$v.companyGatewayUIState?.toBuilder(); _groupUIState = _$v.groupUIState?.toBuilder(); _documentUIState = _$v.documentUIState?.toBuilder(); _expenseUIState = _$v.expenseUIState?.toBuilder(); _vendorUIState = _$v.vendorUIState?.toBuilder(); _taskUIState = _$v.taskUIState?.toBuilder(); _projectUIState = _$v.projectUIState?.toBuilder(); _paymentUIState = _$v.paymentUIState?.toBuilder(); _quoteUIState = _$v.quoteUIState?.toBuilder(); _settingsUIState = _$v.settingsUIState?.toBuilder(); _historyList = _$v.historyList?.toBuilder(); _$v = null; } return this; } @override void replace(UIState other) { if (other == null) { throw new ArgumentError.notNull('other'); } _$v = other as _$UIState; } @override void update(void Function(UIStateBuilder) updates) { if (updates != null) updates(this); } @override _$UIState build() { _$UIState _$result; try { _$result = _$v ?? new _$UIState._( layout: layout, menuSidebarMode: menuSidebarMode, historySidebarMode: historySidebarMode, isTesting: isTesting, isMenuVisible: isMenuVisible, isHistoryVisible: isHistoryVisible, selectedCompanyIndex: selectedCompanyIndex, currentRoute: currentRoute, previousRoute: previousRoute, enableDarkMode: enableDarkMode, accentColor: accentColor, longPressSelectionIsDefault: longPressSelectionIsDefault, requireAuthentication: requireAuthentication, emailPayment: emailPayment, autoStartTasks: autoStartTasks, addDocumentsToInvoice: addDocumentsToInvoice, filter: filter, filterClearedAt: filterClearedAt, dashboardUIState: dashboardUIState.build(), productUIState: productUIState.build(), clientUIState: clientUIState.build(), invoiceUIState: invoiceUIState.build(), userUIState: userUIState.build(), taxRateUIState: taxRateUIState.build(), companyGatewayUIState: companyGatewayUIState.build(), groupUIState: groupUIState.build(), documentUIState: documentUIState.build(), expenseUIState: expenseUIState.build(), vendorUIState: vendorUIState.build(), taskUIState: taskUIState.build(), projectUIState: projectUIState.build(), paymentUIState: paymentUIState.build(), quoteUIState: quoteUIState.build(), settingsUIState: settingsUIState.build(), historyList: historyList.build()); } catch (_) { String _$failedField; try { _$failedField = 'dashboardUIState'; dashboardUIState.build(); _$failedField = 'productUIState'; productUIState.build(); _$failedField = 'clientUIState'; clientUIState.build(); _$failedField = 'invoiceUIState'; invoiceUIState.build(); _$failedField = 'userUIState'; userUIState.build(); _$failedField = 'taxRateUIState'; taxRateUIState.build(); _$failedField = 'companyGatewayUIState'; companyGatewayUIState.build(); _$failedField = 'groupUIState'; groupUIState.build(); _$failedField = 'documentUIState'; documentUIState.build(); _$failedField = 'expenseUIState'; expenseUIState.build(); _$failedField = 'vendorUIState'; vendorUIState.build(); _$failedField = 'taskUIState'; taskUIState.build(); _$failedField = 'projectUIState'; projectUIState.build(); _$failedField = 'paymentUIState'; paymentUIState.build(); _$failedField = 'quoteUIState'; quoteUIState.build(); _$failedField = 'settingsUIState'; settingsUIState.build(); _$failedField = 'historyList'; historyList.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'UIState', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$HistoryRecord extends HistoryRecord { @override final String id; @override final EntityType entityType; @override final int timestamp; factory _$HistoryRecord([void Function(HistoryRecordBuilder) updates]) => (new HistoryRecordBuilder()..update(updates)).build(); _$HistoryRecord._({this.id, this.entityType, this.timestamp}) : super._() { if (id == null) { throw new BuiltValueNullFieldError('HistoryRecord', 'id'); } if (entityType == null) { throw new BuiltValueNullFieldError('HistoryRecord', 'entityType'); } if (timestamp == null) { throw new BuiltValueNullFieldError('HistoryRecord', 'timestamp'); } } @override HistoryRecord rebuild(void Function(HistoryRecordBuilder) updates) => (toBuilder()..update(updates)).build(); @override HistoryRecordBuilder toBuilder() => new HistoryRecordBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is HistoryRecord && id == other.id && entityType == other.entityType && timestamp == other.timestamp; } @override int get hashCode { return $jf( $jc($jc($jc(0, id.hashCode), entityType.hashCode), timestamp.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('HistoryRecord') ..add('id', id) ..add('entityType', entityType) ..add('timestamp', timestamp)) .toString(); } } class HistoryRecordBuilder implements Builder { _$HistoryRecord _$v; String _id; String get id => _$this._id; set id(String id) => _$this._id = id; EntityType _entityType; EntityType get entityType => _$this._entityType; set entityType(EntityType entityType) => _$this._entityType = entityType; int _timestamp; int get timestamp => _$this._timestamp; set timestamp(int timestamp) => _$this._timestamp = timestamp; HistoryRecordBuilder(); HistoryRecordBuilder get _$this { if (_$v != null) { _id = _$v.id; _entityType = _$v.entityType; _timestamp = _$v.timestamp; _$v = null; } return this; } @override void replace(HistoryRecord other) { if (other == null) { throw new ArgumentError.notNull('other'); } _$v = other as _$HistoryRecord; } @override void update(void Function(HistoryRecordBuilder) updates) { if (updates != null) updates(this); } @override _$HistoryRecord build() { final _$result = _$v ?? new _$HistoryRecord._( id: id, entityType: entityType, timestamp: timestamp); replace(_$result); return _$result; } } // ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new