NetworkTypes.from constructor

NetworkTypes.from(
  1. int value
)

Implementation

factory NetworkTypes.from(int value) => NetworkTypes.values
    .firstWhere((e) => e.value == value, orElse: () => NetworkTypes(value));