fromAddress static method

TransactionTransferMethod fromAddress(
  1. String address,
  2. String recipient,
  3. String sender
)

Implementation

static TransactionTransferMethod fromAddress(
  String address,
  String recipient,
  String sender,
) {
  if (address.toLowerCase() == sender.toLowerCase() &&
      address.toLowerCase() == recipient.toLowerCase())
    return TransactionTransferMethod.own;
  if (address == recipient) return TransactionTransferMethod.receive;
  return TransactionTransferMethod.send;
}