timeInterval property

Duration timeInterval
final

The time interval between the time slots in time slot views of SfCalendar.

Defaults to 60 minutes.

Note: If this property sets with minutes value, the timeFormat need to be modified to display the time labels with minutes.

See also: timeFormat.

Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.workWeek,
       timeSlotViewSettings: TimeSlotViewSettings(
           startHour: 10,
           endHour: 20,
           nonWorkingDays: <int>[
             DateTime.saturday,
             DateTime.sunday,
             DateTime.friday
           ],
           timeInterval: Duration(minutes: 120),
           timeIntervalHeight: 80,
           timeFormat: 'h:mm',
           dateFormat: 'd',
           dayFormat: 'EEE',
           timeRulerSize: 70),
     ),
   );
 }

Implementation

final Duration timeInterval;