CustomDateSelector constructor

const CustomDateSelector({
  1. Key? key,
  2. required void onDateSelected(
    1. int year,
    2. int month,
    3. int day
    ),
  3. String? label,
  4. String? type,
  5. String? sheetLabel,
  6. CalendarTheme? theme,
  7. int? maxYear,
  8. Widget? customButton,
  9. String? buttonText,
})

Creates a CustomDateSelector widget.

The onDateSelected parameter is required and must not be null.

Implementation

const CustomDateSelector({
  super.key,
  required this.onDateSelected,
  this.label,
  this.type,
  this.sheetLabel,
  this.theme,
  this.maxYear,
  this.customButton,
  this.buttonText,
});