getDayHourPercentage static method
- double hoursPerDay
The percentage of a day that hoursPerDay represents, rounded to 2 decimals.
Implementation
static double getDayHourPercentage(double hoursPerDay) {
final percentage = (hoursPerDay / 24) * 100;
return double.parse(percentage.toStringAsFixed(2));
}