BottomPicker.time constructor

BottomPicker.time({
  1. Key? key,
  2. required Widget pickerTitle,
  3. Widget? pickerDescription,
  4. required Time? initialTime,
  5. Time? maxTime,
  6. Time? minTime,
  7. EdgeInsetsGeometry titlePadding = const EdgeInsets.all(0),
  8. Alignment? titleAlignment,
  9. bool dismissable = false,
  10. dynamic onChange(
    1. dynamic
    )?,
  11. dynamic onSubmit(
    1. dynamic
    )?,
  12. Function? onClose,
  13. BottomPickerTheme bottomPickerTheme = BottomPickerTheme.blue,
  14. List<Color>? gradientColors,
  15. int? minuteInterval = 1,
  16. bool use24hFormat = false,
  17. double? buttonPadding,
  18. double? buttonWidth,
  19. Color? buttonSingleColor,
  20. Color backgroundColor = Colors.white,
  21. TextStyle pickerTextStyle = const TextStyle(fontSize: 14, color: Colors.black),
  22. bool displayCloseIcon = true,
  23. @Deprecated('Will be removed, if not null `onClose` will override the close button onTap function') bool popOnClose = true,
  24. Color closeIconColor = Colors.black,
  25. double closeIconSize = 20,
  26. LayoutOrientation layoutOrientation = LayoutOrientation.ltr,
  27. MainAxisAlignment buttonAlignment = MainAxisAlignment.center,
  28. double? height,
  29. bool displaySubmitButton = true,
  30. Widget? buttonContent,
  31. BoxDecoration? buttonStyle,
})

Implementation

BottomPicker.time({
  Key? key,
  required this.pickerTitle,
  this.pickerDescription,
  required this.initialTime,
  this.maxTime,
  this.minTime,
  this.titlePadding = const EdgeInsets.all(0),
  this.titleAlignment,
  this.dismissable = false,
  this.onChange,
  this.onSubmit,
  this.onClose,
  this.bottomPickerTheme = BottomPickerTheme.blue,
  this.gradientColors,
  this.minuteInterval = 1,
  this.use24hFormat = false,
  this.buttonPadding,
  this.buttonWidth,
  this.buttonSingleColor,
  this.backgroundColor = Colors.white,
  this.pickerTextStyle = const TextStyle(
    fontSize: 14,
    color: Colors.black,
  ),
  this.displayCloseIcon = true,
  @Deprecated(
    'Will be removed, if not null `onClose` will override the close button onTap function',
  )
  this.popOnClose = true,
  this.closeIconColor = Colors.black,
  this.closeIconSize = 20,
  this.layoutOrientation = LayoutOrientation.ltr,
  this.buttonAlignment = MainAxisAlignment.center,
  this.height,
  this.displaySubmitButton = true,
  this.buttonContent,
  this.buttonStyle,
}) : super(key: key) {
  datePickerMode = CupertinoDatePickerMode.time;
  bottomPickerType = BottomPickerType.time;
  dateOrder = null;
  itemExtent = 0;
  onRangeDateSubmitPressed = null;
  initialDateTime = null;
  assertInitialValues();
}