requiredSection static method

double requiredSection(
  1. double current
)

Calculate required cable section for given current Returns first standard section that can handle the current

Implementation

static double requiredSection(double current) {
  for (final entry in cableCurrentCapacity.entries) {
    if (entry.value >= current) {
      return entry.key;
    }
  }
  return 240.0; // Maximum available
}