Transaction class sealed

Implemented types
Available extensions
Annotations
  • @freezed

Constructors

Transaction.new({required TransactionId id, TransactionId? prevTransactionId, @dateSecondsSinceEpochJsonConverter required DateTime createdAt, required bool aborted, @JsonKey(includeIfNull: false) int? exitCode, @JsonKey(includeIfNull: false) int? resultCode, required AccountStatus origStatus, required AccountStatus endStatus, @amountJsonConverter required BigInt totalFees, required Message inMessage, required List<Message> outMessages, required String? boc})
const
factory
Transaction.fromJson(Map<String, dynamic> json)
factory

Properties

aborted bool
no setterinherited
boc String?
no setterinherited
copyWith → $TransactionCopyWith<Transaction>
Create a copy of Transaction with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt DateTime
no setterinherited
endStatus AccountStatus
no setterinherited
exitCode int?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id TransactionId
no setterinherited
inMessage Message
no setterinherited
origStatus AccountStatus
no setterinherited
outMessages List<Message>
no setterinherited
prevTransactionId TransactionId?
no setterinherited
resultCode int?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalFees BigInt
no setterinherited

Methods

compareTo(Transaction other) int
Compares this object to another object.
override
map<TResult extends Object?>(TResult $default(_Transaction value)) → TResult

Available on Transaction, provided by the TransactionPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_Transaction value)?) → TResult?

Available on Transaction, provided by the TransactionPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_Transaction value)?, {required TResult orElse()}) → TResult

Available on Transaction, provided by the TransactionPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(TransactionId id, TransactionId? prevTransactionId, DateTime createdAt, bool aborted, int? exitCode, int? resultCode, AccountStatus origStatus, AccountStatus endStatus, BigInt totalFees, Message inMessage, List<Message> outMessages, String? boc)?, {required TResult orElse()}) → TResult

Available on Transaction, provided by the TransactionPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this Transaction to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(TransactionId id, TransactionId? prevTransactionId, DateTime createdAt, bool aborted, int? exitCode, int? resultCode, AccountStatus origStatus, AccountStatus endStatus, BigInt totalFees, Message inMessage, List<Message> outMessages, String? boc)) → TResult

Available on Transaction, provided by the TransactionPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(TransactionId id, TransactionId? prevTransactionId, DateTime createdAt, bool aborted, int? exitCode, int? resultCode, AccountStatus origStatus, AccountStatus endStatus, BigInt totalFees, Message inMessage, List<Message> outMessages, String? boc)?) → TResult?

Available on Transaction, provided by the TransactionPatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) bool
The equality operator.
inherited