From f0db9089baf0739f1e95828003ecd807291b11f8 Mon Sep 17 00:00:00 2001 From: Ez3kiel Date: Sun, 21 Jan 2024 15:54:04 +0100 Subject: [PATCH] fix: failed in freezed generated file --- .../transaction/transaction_response.freezed.dart | 1 - .../build_transaction_params.freezed.dart | 10 ---------- .../transaction_entry/transaction_entry.freezed.dart | 7 ------- .../transaction_entry_type.freezed.dart | 7 +++---- 4 files changed, 3 insertions(+), 22 deletions(-) diff --git a/lib/src/data_transfer_objects/transaction/transaction_response.freezed.dart b/lib/src/data_transfer_objects/transaction/transaction_response.freezed.dart index 4b198d0..2b77aff 100644 --- a/lib/src/data_transfer_objects/transaction/transaction_response.freezed.dart +++ b/lib/src/data_transfer_objects/transaction/transaction_response.freezed.dart @@ -136,7 +136,6 @@ abstract class _$$TransactionResponseImplCopyWith<$Res> factory _$$TransactionResponseImplCopyWith(_$TransactionResponseImpl value, $Res Function(_$TransactionResponseImpl) then) = __$$TransactionResponseImplCopyWithImpl<$Res>; - @override @useResult $Res call( diff --git a/lib/src/data_transfer_objects/wallet/build_transaction/build_transaction_params.freezed.dart b/lib/src/data_transfer_objects/wallet/build_transaction/build_transaction_params.freezed.dart index ad57d71..c17a89b 100644 --- a/lib/src/data_transfer_objects/wallet/build_transaction/build_transaction_params.freezed.dart +++ b/lib/src/data_transfer_objects/wallet/build_transaction/build_transaction_params.freezed.dart @@ -17,7 +17,6 @@ final _privateConstructorUsedError = UnsupportedError( /// @nodoc mixin _$BuildTransactionParams { TransactionType get transactionType => throw _privateConstructorUsedError; - FeeBuilder? get feeBuilder => throw _privateConstructorUsedError; bool get broadcast => throw _privateConstructorUsedError; bool? get txAsHex => throw _privateConstructorUsedError; @@ -32,7 +31,6 @@ abstract class $BuildTransactionParamsCopyWith<$Res> { factory $BuildTransactionParamsCopyWith(BuildTransactionParams value, $Res Function(BuildTransactionParams) then) = _$BuildTransactionParamsCopyWithImpl<$Res, BuildTransactionParams>; - @useResult $Res call( {TransactionType transactionType, @@ -41,7 +39,6 @@ abstract class $BuildTransactionParamsCopyWith<$Res> { bool? txAsHex}); $TransactionTypeCopyWith<$Res> get transactionType; - $FeeBuilderCopyWith<$Res>? get feeBuilder; } @@ -112,7 +109,6 @@ abstract class _$$BuildTransactionParamsImplCopyWith<$Res> _$BuildTransactionParamsImpl value, $Res Function(_$BuildTransactionParamsImpl) then) = __$$BuildTransactionParamsImplCopyWithImpl<$Res>; - @override @useResult $Res call( @@ -123,7 +119,6 @@ abstract class _$$BuildTransactionParamsImplCopyWith<$Res> @override $TransactionTypeCopyWith<$Res> get transactionType; - @override $FeeBuilderCopyWith<$Res>? get feeBuilder; } @@ -223,21 +218,16 @@ abstract class _BuildTransactionParams extends BuildTransactionParams { final FeeBuilder? feeBuilder, required final bool broadcast, final bool? txAsHex}) = _$BuildTransactionParamsImpl; - const _BuildTransactionParams._() : super._(); @override TransactionType get transactionType; - @override FeeBuilder? get feeBuilder; - @override bool get broadcast; - @override bool? get txAsHex; - @override @JsonKey(ignore: true) _$$BuildTransactionParamsImplCopyWith<_$BuildTransactionParamsImpl> diff --git a/lib/src/data_transfer_objects/wallet/transaction_entry/transaction_entry.freezed.dart b/lib/src/data_transfer_objects/wallet/transaction_entry/transaction_entry.freezed.dart index 3af5ac7..b8f14c1 100644 --- a/lib/src/data_transfer_objects/wallet/transaction_entry/transaction_entry.freezed.dart +++ b/lib/src/data_transfer_objects/wallet/transaction_entry/transaction_entry.freezed.dart @@ -18,9 +18,7 @@ final _privateConstructorUsedError = UnsupportedError( mixin _$TransactionEntry { String get hash => throw _privateConstructorUsedError; int get topoHeight => throw _privateConstructorUsedError; - TransactionEntryType get txEntryType => throw _privateConstructorUsedError; - int? get fee => throw _privateConstructorUsedError; int? get nonce => throw _privateConstructorUsedError; @@ -34,7 +32,6 @@ abstract class $TransactionEntryCopyWith<$Res> { factory $TransactionEntryCopyWith( TransactionEntry value, $Res Function(TransactionEntry) then) = _$TransactionEntryCopyWithImpl<$Res, TransactionEntry>; - @useResult $Res call( {String hash, @@ -104,7 +101,6 @@ abstract class _$$TransactionEntryImplCopyWith<$Res> factory _$$TransactionEntryImplCopyWith(_$TransactionEntryImpl value, $Res Function(_$TransactionEntryImpl) then) = __$$TransactionEntryImplCopyWithImpl<$Res>; - @override @useResult $Res call( @@ -222,13 +218,10 @@ abstract class _TransactionEntry implements TransactionEntry { @override String get hash; - @override int get topoHeight; - @override TransactionEntryType get txEntryType; - @override int? get fee; @override diff --git a/lib/src/data_transfer_objects/wallet/transaction_entry/transaction_entry_type.freezed.dart b/lib/src/data_transfer_objects/wallet/transaction_entry/transaction_entry_type.freezed.dart index 058d510..a4ddbd7 100644 --- a/lib/src/data_transfer_objects/wallet/transaction_entry/transaction_entry_type.freezed.dart +++ b/lib/src/data_transfer_objects/wallet/transaction_entry/transaction_entry_type.freezed.dart @@ -50,7 +50,6 @@ mixin _$TransactionEntryType { outgoing, }) => throw _privateConstructorUsedError; - @optionalTypeArgs TResult? whenOrNull({ TResult? Function(@JsonKey(name: 'reward') int reward)? coinbase, @@ -120,7 +119,7 @@ class _$TransactionEntryTypeCopyWithImpl<$Res, implements $TransactionEntryTypeCopyWith<$Res> { _$TransactionEntryTypeCopyWithImpl(this._value, this._then); -// ignore: unused_field + // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; @@ -570,7 +569,7 @@ class _$IncomingEntryImpl implements IncomingEntry { @JsonKey(name: 'transfers') List get transfers { if (_transfers is EqualUnmodifiableListView) return _transfers; -// ignore: implicit_dynamic_type + // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_transfers); } @@ -768,7 +767,7 @@ class _$OutgoingEntryImpl implements OutgoingEntry { @JsonKey(name: 'transfers') List get transfers { if (_transfers is EqualUnmodifiableListView) return _transfers; -// ignore: implicit_dynamic_type + // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_transfers); }