GSField.dateRangePicker constructor
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,
- String? value,
- int? weight,
- RegExp? validateReg,
- int? maxLength,
- String? hint,
- GSDateFormatType? displayDateType,
- bool? isPastAvailable,
- GSDate? initialStartDate,
- GSDate? initialEndDate,
- GSDate? availableFrom,
- 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,
String? value,
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,
value: value,
weight: weight,
hint: hint,
isPastAvailable: isPastAvailable,
dateFormatType: displayDateType,
initialStartDate: initialStartDate,
initialEndDate: initialEndDate,
availableFrom: availableTo,
availableTo: availableTo,
calendarType: calendarType);
}