fromName static method

SubstrateCoins? fromName(
  1. String name
)

Implementation

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