Code cleanup
This commit is contained in:
parent
6fb19d89ef
commit
a1b9498ce2
|
|
@ -48,7 +48,6 @@ abstract class PrefState implements Built<PrefState, PrefStateBuilder> {
|
||||||
showPdfPreview: true,
|
showPdfPreview: true,
|
||||||
showPdfPreviewSideBySide: false,
|
showPdfPreviewSideBySide: false,
|
||||||
persistData: false,
|
persistData: false,
|
||||||
persistUI: true,
|
|
||||||
enableNativeBrowser: false,
|
enableNativeBrowser: false,
|
||||||
donwloadsFolder: '',
|
donwloadsFolder: '',
|
||||||
statementIncludes: BuiltList(<String>[kStatementIncludePayments]),
|
statementIncludes: BuiltList(<String>[kStatementIncludePayments]),
|
||||||
|
|
@ -145,8 +144,6 @@ abstract class PrefState implements Built<PrefState, PrefStateBuilder> {
|
||||||
|
|
||||||
bool get persistData;
|
bool get persistData;
|
||||||
|
|
||||||
bool get persistUI;
|
|
||||||
|
|
||||||
bool get longPressSelectionIsDefault;
|
bool get longPressSelectionIsDefault;
|
||||||
|
|
||||||
bool get requireAuthentication;
|
bool get requireAuthentication;
|
||||||
|
|
|
||||||
|
|
@ -181,9 +181,6 @@ class _$PrefStateSerializer implements StructuredSerializer<PrefState> {
|
||||||
'persistData',
|
'persistData',
|
||||||
serializers.serialize(object.persistData,
|
serializers.serialize(object.persistData,
|
||||||
specifiedType: const FullType(bool)),
|
specifiedType: const FullType(bool)),
|
||||||
'persistUI',
|
|
||||||
serializers.serialize(object.persistUI,
|
|
||||||
specifiedType: const FullType(bool)),
|
|
||||||
'longPressSelectionIsDefault',
|
'longPressSelectionIsDefault',
|
||||||
serializers.serialize(object.longPressSelectionIsDefault,
|
serializers.serialize(object.longPressSelectionIsDefault,
|
||||||
specifiedType: const FullType(bool)),
|
specifiedType: const FullType(bool)),
|
||||||
|
|
@ -353,10 +350,6 @@ class _$PrefStateSerializer implements StructuredSerializer<PrefState> {
|
||||||
result.persistData = serializers.deserialize(value,
|
result.persistData = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(bool))! as bool;
|
specifiedType: const FullType(bool))! as bool;
|
||||||
break;
|
break;
|
||||||
case 'persistUI':
|
|
||||||
result.persistUI = serializers.deserialize(value,
|
|
||||||
specifiedType: const FullType(bool))! as bool;
|
|
||||||
break;
|
|
||||||
case 'longPressSelectionIsDefault':
|
case 'longPressSelectionIsDefault':
|
||||||
result.longPressSelectionIsDefault = serializers.deserialize(value,
|
result.longPressSelectionIsDefault = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(bool))! as bool;
|
specifiedType: const FullType(bool))! as bool;
|
||||||
|
|
@ -723,8 +716,6 @@ class _$PrefState extends PrefState {
|
||||||
@override
|
@override
|
||||||
final bool persistData;
|
final bool persistData;
|
||||||
@override
|
@override
|
||||||
final bool persistUI;
|
|
||||||
@override
|
|
||||||
final bool longPressSelectionIsDefault;
|
final bool longPressSelectionIsDefault;
|
||||||
@override
|
@override
|
||||||
final bool requireAuthentication;
|
final bool requireAuthentication;
|
||||||
|
|
@ -788,7 +779,6 @@ class _$PrefState extends PrefState {
|
||||||
required this.enableDarkModeSystem,
|
required this.enableDarkModeSystem,
|
||||||
required this.isFilterVisible,
|
required this.isFilterVisible,
|
||||||
required this.persistData,
|
required this.persistData,
|
||||||
required this.persistUI,
|
|
||||||
required this.longPressSelectionIsDefault,
|
required this.longPressSelectionIsDefault,
|
||||||
required this.requireAuthentication,
|
required this.requireAuthentication,
|
||||||
required this.tapSelectedToEdit,
|
required this.tapSelectedToEdit,
|
||||||
|
|
@ -850,7 +840,6 @@ class _$PrefState extends PrefState {
|
||||||
isFilterVisible, r'PrefState', 'isFilterVisible');
|
isFilterVisible, r'PrefState', 'isFilterVisible');
|
||||||
BuiltValueNullFieldError.checkNotNull(
|
BuiltValueNullFieldError.checkNotNull(
|
||||||
persistData, r'PrefState', 'persistData');
|
persistData, r'PrefState', 'persistData');
|
||||||
BuiltValueNullFieldError.checkNotNull(persistUI, r'PrefState', 'persistUI');
|
|
||||||
BuiltValueNullFieldError.checkNotNull(longPressSelectionIsDefault,
|
BuiltValueNullFieldError.checkNotNull(longPressSelectionIsDefault,
|
||||||
r'PrefState', 'longPressSelectionIsDefault');
|
r'PrefState', 'longPressSelectionIsDefault');
|
||||||
BuiltValueNullFieldError.checkNotNull(
|
BuiltValueNullFieldError.checkNotNull(
|
||||||
|
|
@ -923,7 +912,6 @@ class _$PrefState extends PrefState {
|
||||||
enableDarkModeSystem == other.enableDarkModeSystem &&
|
enableDarkModeSystem == other.enableDarkModeSystem &&
|
||||||
isFilterVisible == other.isFilterVisible &&
|
isFilterVisible == other.isFilterVisible &&
|
||||||
persistData == other.persistData &&
|
persistData == other.persistData &&
|
||||||
persistUI == other.persistUI &&
|
|
||||||
longPressSelectionIsDefault == other.longPressSelectionIsDefault &&
|
longPressSelectionIsDefault == other.longPressSelectionIsDefault &&
|
||||||
requireAuthentication == other.requireAuthentication &&
|
requireAuthentication == other.requireAuthentication &&
|
||||||
tapSelectedToEdit == other.tapSelectedToEdit &&
|
tapSelectedToEdit == other.tapSelectedToEdit &&
|
||||||
|
|
@ -971,7 +959,6 @@ class _$PrefState extends PrefState {
|
||||||
_$hash = $jc(_$hash, enableDarkModeSystem.hashCode);
|
_$hash = $jc(_$hash, enableDarkModeSystem.hashCode);
|
||||||
_$hash = $jc(_$hash, isFilterVisible.hashCode);
|
_$hash = $jc(_$hash, isFilterVisible.hashCode);
|
||||||
_$hash = $jc(_$hash, persistData.hashCode);
|
_$hash = $jc(_$hash, persistData.hashCode);
|
||||||
_$hash = $jc(_$hash, persistUI.hashCode);
|
|
||||||
_$hash = $jc(_$hash, longPressSelectionIsDefault.hashCode);
|
_$hash = $jc(_$hash, longPressSelectionIsDefault.hashCode);
|
||||||
_$hash = $jc(_$hash, requireAuthentication.hashCode);
|
_$hash = $jc(_$hash, requireAuthentication.hashCode);
|
||||||
_$hash = $jc(_$hash, tapSelectedToEdit.hashCode);
|
_$hash = $jc(_$hash, tapSelectedToEdit.hashCode);
|
||||||
|
|
@ -1019,7 +1006,6 @@ class _$PrefState extends PrefState {
|
||||||
..add('enableDarkModeSystem', enableDarkModeSystem)
|
..add('enableDarkModeSystem', enableDarkModeSystem)
|
||||||
..add('isFilterVisible', isFilterVisible)
|
..add('isFilterVisible', isFilterVisible)
|
||||||
..add('persistData', persistData)
|
..add('persistData', persistData)
|
||||||
..add('persistUI', persistUI)
|
|
||||||
..add('longPressSelectionIsDefault', longPressSelectionIsDefault)
|
..add('longPressSelectionIsDefault', longPressSelectionIsDefault)
|
||||||
..add('requireAuthentication', requireAuthentication)
|
..add('requireAuthentication', requireAuthentication)
|
||||||
..add('tapSelectedToEdit', tapSelectedToEdit)
|
..add('tapSelectedToEdit', tapSelectedToEdit)
|
||||||
|
|
@ -1152,10 +1138,6 @@ class PrefStateBuilder implements Builder<PrefState, PrefStateBuilder> {
|
||||||
bool? get persistData => _$this._persistData;
|
bool? get persistData => _$this._persistData;
|
||||||
set persistData(bool? persistData) => _$this._persistData = persistData;
|
set persistData(bool? persistData) => _$this._persistData = persistData;
|
||||||
|
|
||||||
bool? _persistUI;
|
|
||||||
bool? get persistUI => _$this._persistUI;
|
|
||||||
set persistUI(bool? persistUI) => _$this._persistUI = persistUI;
|
|
||||||
|
|
||||||
bool? _longPressSelectionIsDefault;
|
bool? _longPressSelectionIsDefault;
|
||||||
bool? get longPressSelectionIsDefault => _$this._longPressSelectionIsDefault;
|
bool? get longPressSelectionIsDefault => _$this._longPressSelectionIsDefault;
|
||||||
set longPressSelectionIsDefault(bool? longPressSelectionIsDefault) =>
|
set longPressSelectionIsDefault(bool? longPressSelectionIsDefault) =>
|
||||||
|
|
@ -1279,7 +1261,6 @@ class PrefStateBuilder implements Builder<PrefState, PrefStateBuilder> {
|
||||||
_enableDarkModeSystem = $v.enableDarkModeSystem;
|
_enableDarkModeSystem = $v.enableDarkModeSystem;
|
||||||
_isFilterVisible = $v.isFilterVisible;
|
_isFilterVisible = $v.isFilterVisible;
|
||||||
_persistData = $v.persistData;
|
_persistData = $v.persistData;
|
||||||
_persistUI = $v.persistUI;
|
|
||||||
_longPressSelectionIsDefault = $v.longPressSelectionIsDefault;
|
_longPressSelectionIsDefault = $v.longPressSelectionIsDefault;
|
||||||
_requireAuthentication = $v.requireAuthentication;
|
_requireAuthentication = $v.requireAuthentication;
|
||||||
_tapSelectedToEdit = $v.tapSelectedToEdit;
|
_tapSelectedToEdit = $v.tapSelectedToEdit;
|
||||||
|
|
@ -1352,7 +1333,6 @@ class PrefStateBuilder implements Builder<PrefState, PrefStateBuilder> {
|
||||||
enableDarkModeSystem: BuiltValueNullFieldError.checkNotNull(enableDarkModeSystem, r'PrefState', 'enableDarkModeSystem'),
|
enableDarkModeSystem: BuiltValueNullFieldError.checkNotNull(enableDarkModeSystem, r'PrefState', 'enableDarkModeSystem'),
|
||||||
isFilterVisible: BuiltValueNullFieldError.checkNotNull(isFilterVisible, r'PrefState', 'isFilterVisible'),
|
isFilterVisible: BuiltValueNullFieldError.checkNotNull(isFilterVisible, r'PrefState', 'isFilterVisible'),
|
||||||
persistData: BuiltValueNullFieldError.checkNotNull(persistData, r'PrefState', 'persistData'),
|
persistData: BuiltValueNullFieldError.checkNotNull(persistData, r'PrefState', 'persistData'),
|
||||||
persistUI: BuiltValueNullFieldError.checkNotNull(persistUI, r'PrefState', 'persistUI'),
|
|
||||||
longPressSelectionIsDefault: BuiltValueNullFieldError.checkNotNull(longPressSelectionIsDefault, r'PrefState', 'longPressSelectionIsDefault'),
|
longPressSelectionIsDefault: BuiltValueNullFieldError.checkNotNull(longPressSelectionIsDefault, r'PrefState', 'longPressSelectionIsDefault'),
|
||||||
requireAuthentication: BuiltValueNullFieldError.checkNotNull(requireAuthentication, r'PrefState', 'requireAuthentication'),
|
requireAuthentication: BuiltValueNullFieldError.checkNotNull(requireAuthentication, r'PrefState', 'requireAuthentication'),
|
||||||
tapSelectedToEdit: BuiltValueNullFieldError.checkNotNull(tapSelectedToEdit, r'PrefState', 'tapSelectedToEdit'),
|
tapSelectedToEdit: BuiltValueNullFieldError.checkNotNull(tapSelectedToEdit, r'PrefState', 'tapSelectedToEdit'),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue