getByValue static method

SubstrateChain getByValue(
  1. num i
)

Implementation

static SubstrateChain getByValue(num i) {
  return SubstrateChain.values.firstWhere((x) => x.value == i);
}