CustomDatePicker constructor

const CustomDatePicker({
  1. Key? key,
  2. required DateTimeCallback action,
  3. required String hintText,
  4. required double width,
  5. Color iconColor = CustomLightTheme.primaryColor,
  6. Color backgroundColor = Colors.white,
  7. Color textColor = Colors.black54,
  8. int initialDate = 1970,
  9. int finishDate = 2010,
})

Implementation

const CustomDatePicker({
  super.key,
  required this.action,
  required this.hintText,
  required this.width,
  this.iconColor = CustomLightTheme.primaryColor,
  this.backgroundColor = Colors.white,
  this.textColor = Colors.black54,
  this.initialDate = 1970,
  this.finishDate = 2010,
});