dividedSize method
Calculates the size by dividing the total size by the specified divided length.
Example:
double result = sizeConfig.dividedSize(totalSize, dividedLength);
Implementation
double dividedSize(double totalSize, double dividedLength) {
if (dividedLength > totalSize) return totalSize;
if (dividedLength < 0) return 0;
return totalSize / dividedLength;
}