actionableSliderHoursContext function

String actionableSliderHoursContext(
  1. double min,
  2. double max,
  3. double val
)

Implementation

String actionableSliderHoursContext(
        double min, double max, double val) =>
    val > max
        ? "Greater than $max hours"
        : val < min
            ? "Less than $min hour"
            : "$val hours";