searchCapacity static method

String searchCapacity(
  1. double totalCapacity
)

Implementation

static String searchCapacity(double totalCapacity) {
  debugPrint(totalCapacity.toString());
  var count = 0;
  for (count = 0; count < _capacities.length; count++) {
    var difference = totalCapacity - _capacities[count];
    debugPrint(difference.toString());
    if ((difference <= 0)) {
      debugPrint("SAIIII");
      break;
    }
  }
  debugPrint(count.toString());
  return _capacities[count].toString();
}