fromInt static method

BatteryCapacityLevel fromInt(
  1. int value
)

Implementation

static BatteryCapacityLevel fromInt(int value) => BatteryCapacityLevel.values.firstWhere((element) => element.value == value, orElse: () => BatteryCapacityLevel.unsupported);