fromName static method

EthereumMethods? fromName(
  1. String? name
)

Implementation

static EthereumMethods? fromName(String? name) {
  try {
    return values.firstWhere((e) => e.value == name);
  } on StateError {
    return null;
  }
}