getChainByValue static method

Chain getChainByValue(
  1. int code
)

Implementation

static Chain getChainByValue(int code) {
  return Chain.values.firstWhere((e) => e.value == code);
}