AgDateTimePicker constructor
const
AgDateTimePicker({
- Key? key,
- required ValueChanged<
DateTime> onChanged, - PickerMode mode = PickerMode.date,
- DateTime? initialDateTime,
- DateTime? firstDate,
- DateTime? lastDate,
- String? validator()?,
- String? hintText,
- String? labelText,
- InputDecoration? decoration,
- Widget? leadingIcon,
- Widget? trailingIcon,
- Widget? agCachedImage,
- String dateFormat = 'dd MMM yyyy',
- String timeFormat = 'hh:mm a',
- bool isNativeSupportOn = false,
Implementation
const AgDateTimePicker({
super.key,
required this.onChanged,
this.mode = PickerMode.date,
this.initialDateTime,
this.firstDate,
this.lastDate,
this.validator,
this.hintText,
this.labelText,
this.decoration,
this.leadingIcon,
this.trailingIcon,
this.agCachedImage,
this.dateFormat = 'dd MMM yyyy',
this.timeFormat = 'hh:mm a',
this.isNativeSupportOn = false,
});