Clawback constructor

Clawback({
  1. required String account,
  2. required IssuedCurrencyAmount amount,
  3. List<XRPLMemo>? memos = const [],
  4. int? ticketSequance,
  5. String signingPubKey = "",
  6. int? sequence,
  7. String? fee,
  8. int? lastLedgerSequence,
})

amount The amount of currency to claw back. The issuer field is used for the token holder's address, from whom the tokens will be clawed back.

Implementation

Clawback({
  required super.account,
  required this.amount,
  super.memos,
  super.ticketSequance,
  super.signingPubKey,
  super.sequence,
  super.fee,
  super.lastLedgerSequence,
})  : assert(() {
        if (amount.issuer == account) {
          return false;
        }
        return true;
      }(), "Holder's address is wrong."),
      super(transactionType: XRPLTransactionType.CLAWBACK);