OptimusDateTimeField constructor

const OptimusDateTimeField({
  1. Key? key,
  2. DateTime? value,
  3. String? label,
  4. required ValueChanged<DateTime?> onChanged,
  5. DateTime? minDate,
  6. DateTime? maxDate,
  7. String? error,
  8. required DateTimeFormatter formatDateTime,
  9. bool isClearEnabled = false,
  10. String? placeholder,
  11. bool isEnabled = true,
})

Implementation

const OptimusDateTimeField({
  super.key,
  this.value,
  this.label,
  required this.onChanged,
  this.minDate,
  this.maxDate,
  this.error,
  required this.formatDateTime,
  this.isClearEnabled = false,
  this.placeholder,
  this.isEnabled = true,
});