GSField.dateRangePicker constructor

GSField.dateRangePicker({
  1. Key? key,
  2. required String tag,
  3. required GSCalendarType calendarType,
  4. String? title,
  5. String? errorMessage,
  6. String? helpMessage,
  7. String? from,
  8. String? to,
  9. Widget? prefixWidget,
  10. Widget? postfixWidget,
  11. bool? required,
  12. bool? showTitle,
  13. GSFieldStatusEnum? status,
  14. int? weight,
  15. RegExp? validateReg,
  16. int? maxLength,
  17. String? hint,
  18. GSDateFormatType? displayDateType,
  19. bool? isPastAvailable,
  20. GSDate? initialStartDate,
  21. GSDate? initialEndDate,
  22. GSDate? availableFrom,
  23. GSDate? availableTo,
})

Implementation

GSField.dateRangePicker({
  Key? key,
  required String tag,
  required GSCalendarType calendarType,
  String? title,
  String? errorMessage,
  String? helpMessage,
  String? from,
  String? to,
  Widget? prefixWidget,
  Widget? postfixWidget,
  bool? required,
  bool? showTitle,
  GSFieldStatusEnum? status,
  int? weight,
  RegExp? validateReg,
  int? maxLength,
  String? hint,
  GSDateFormatType? displayDateType,
  bool? isPastAvailable,
  GSDate? initialStartDate,
  GSDate? initialEndDate,
  GSDate? availableFrom,
  GSDate? availableTo,
}) : super(key: key) {
  model = GSDateRangePickerModel(
      type: GSFieldTypeEnum.dateRage,
      tag: tag,
      title: title,
      errorMessage: errorMessage,
      helpMessage: helpMessage,
      from: from ?? 'From ',
      to: to ?? 'To ',
      prefixWidget: prefixWidget,
      postfixWidget: postfixWidget,
      showTitle: showTitle ?? true,
      required: required,
      status: status,
      weight: weight,
      hint: hint,
      isPastAvailable: isPastAvailable,
      dateFormatType: displayDateType,
      initialStartDate: initialStartDate,
      initialEndDate: initialEndDate,
      availableFrom: availableTo,
      availableTo: availableTo,
      calendarType: calendarType);
}