NepaliCalendar constructor

const NepaliCalendar({
  1. Key? key,
  2. NepaliDateTime? initialDate,
  3. NepaliDateTime? firstDate,
  4. NepaliDateTime? lastDate,
  5. SelectableDayPredicate? selectableDayPredicate,
  6. Language language = Language.nepali,
  7. double? dayPickerRowHeight = 50.0,
  8. dynamic onDaySelected(
    1. NepaliDateTime
    )?,
  9. dynamic onMonthChanged(
    1. NepaliDateTime
    )?,
  10. HeaderStyle headerStyle = const HeaderStyle(),
  11. CalendarStyle calendarStyle = const CalendarStyle(),
  12. HeaderGestureCallback? onHeaderTapped,
  13. HeaderGestureCallback? onHeaderLongPressed,
  14. required NepaliCalendarController controller,
  15. HeaderDayType headerDayType = HeaderDayType.initial,
  16. HeaderDayBuilder? headerDayBuilder,
  17. DateCellBuilder? dateCellBuilder,
  18. bool enableVibration = true,
  19. HeaderBuilder? headerBuilder,
})

Implementation

const NepaliCalendar({
  Key? key,
  this.initialDate,
  this.firstDate,
  this.lastDate,
  this.selectableDayPredicate,
  this.language = Language.nepali,
  this.dayPickerRowHeight = 50.0,
  this.onDaySelected,
  this.onMonthChanged,
  this.headerStyle = const HeaderStyle(),
  this.calendarStyle = const CalendarStyle(),
  this.onHeaderTapped,
  this.onHeaderLongPressed,
  required this.controller,
  this.headerDayType = HeaderDayType.initial,
  this.headerDayBuilder,
  this.dateCellBuilder,
  this.enableVibration = true,
  this.headerBuilder,
}) : super(key: key);