TimeSlotViewSettings constructor
const
TimeSlotViewSettings({
- double startHour = 0,
- double endHour = 24,
- List<
int> nonWorkingDays = const <int>[DateTime.saturday, DateTime.sunday], - String timeFormat = 'h a',
- Duration timeInterval = const Duration(minutes: 60),
- double timeIntervalHeight = 40,
- double timeIntervalWidth = -2,
- double timelineAppointmentHeight = -1,
- Duration? minimumAppointmentDuration,
- String dateFormat = 'd',
- String dayFormat = 'EE',
- double timeRulerSize = -1,
- TextStyle? timeTextStyle,
- Color? allDayPanelColor,
- int numberOfDaysInView = -1,
Creates a timeslot view settings for calendar.
The properties allows to customize the timeslot views of SfCalendar.
Implementation
const TimeSlotViewSettings(
{this.startHour = 0,
this.endHour = 24,
this.nonWorkingDays = const <int>[DateTime.saturday, DateTime.sunday],
this.timeFormat = 'h a',
this.timeInterval = const Duration(minutes: 60),
this.timeIntervalHeight = 40,
this.timeIntervalWidth = -2,
this.timelineAppointmentHeight = -1,
this.minimumAppointmentDuration,
this.dateFormat = 'd',
this.dayFormat = 'EE',
this.timeRulerSize = -1,
this.timeTextStyle,
this.allDayPanelColor,
this.numberOfDaysInView = -1})
: assert(startHour >= 0 && startHour <= 24),
assert(endHour >= 0 && endHour <= 24),
assert(timeIntervalHeight >= -1),
assert(timeIntervalWidth >= -2),
assert(timelineAppointmentHeight >= -1),
assert(timeRulerSize >= -1),
assert(numberOfDaysInView >= -1);