AgDateTimePicker constructor

const AgDateTimePicker({
  1. Key? key,
  2. required ValueChanged<DateTime> onChanged,
  3. PickerMode mode = PickerMode.date,
  4. DateTime? initialDateTime,
  5. DateTime? firstDate,
  6. DateTime? lastDate,
  7. String? validator(
    1. DateTime?
    )?,
  8. String? hintText,
  9. String? labelText,
  10. InputDecoration? decoration,
  11. Widget? leadingIcon,
  12. Widget? trailingIcon,
  13. Widget? agCachedImage,
  14. String dateFormat = 'dd MMM yyyy',
  15. String timeFormat = 'hh:mm a',
  16. 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,
});