TransactionHistory constructor

TransactionHistory({
  1. Iterable<TransactionDetails>? transactions,
  2. String? error,
})

Implementation

factory TransactionHistory({
  $core.Iterable<TransactionDetails>? transactions,
  $core.String? error,
}) {
  final _result = create();
  if (transactions != null) {
    _result.transactions.addAll(transactions);
  }
  if (error != null) {
    _result.error = error;
  }
  return _result;
}