NiceDateRangeBox constructor

const NiceDateRangeBox({
  1. Key? key,
  2. required DateTime? start,
  3. required DateTime? end,
  4. required void onChanged(
    1. DateTime? start,
    2. DateTime? end
    ),
  5. String? label,
  6. String? errorText,
  7. bool enabled = true,
  8. DateTime? firstDate,
  9. DateTime? lastDate,
  10. String dateFormat = 'yyyy-MM-dd',
  11. String startLabel = 'Od',
  12. String endLabel = 'Do',
})

Implementation

const NiceDateRangeBox({
  super.key,
  required this.start,
  required this.end,
  required this.onChanged,
  this.label,
  this.errorText,
  this.enabled = true,
  this.firstDate,
  this.lastDate,
  this.dateFormat = 'yyyy-MM-dd',
  this.startLabel = 'Od',
  this.endLabel = 'Do',
});