fromPrefix static method

ETHTransactionType fromPrefix(
  1. int prefix
)

Returns the ETHTransactionType corresponding to the given prefix.

Implementation

static ETHTransactionType fromPrefix(int prefix) {
  return values.firstWhere((element) => element.prefix == prefix);
}