title: how to create a 30 minutes timeslot.. Im getting the start date and end date from backend
body: <pre><code>List&lt;WorkingHourModel&gt; workingHours = response['hours'];
      int startTime = int.parse(workingHours[0].startTime.split(':')[0]);
      int endTime = int.parse(workingHours[0].endTime.split(':')[0]);
      int hoursLeft = endTime - startTime + 1;
      List&lt;String&gt; hours =
          List.generate(hoursLeft, (i) =&gt; '${(endTime - i)}:00').reversed
              .toList();
            
      print('Hours-------- $hours');
      return {
        'success': true,
        'hours': hours,
      };
    }
  </code></pre>
  <p>//this will give the time slots as '1:00', '2:00', '3:00', '4:00'
  //Start time will be 1:00 and end time will be 4:00.</p>
  <h2>Heading</h2>
  <p>But i need 30 mins breakage, like,
  '1:00', '1:30', '2:00', '2:30', '3:00', '3:30', '4:00'</p>
  <p>Kindly help..</p>