fromAddress static method
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;
}