FFDatePicker constructor

FFDatePicker({
  1. FFDatePicker_DateTimePickerType? pickerType,
  2. bool? allowPast,
  3. FFValue? defaultDateTime,
  4. bool? allowFuture,
  5. FFValue? minDateTime,
  6. FFValue? maxDateTime,
  7. bool? useDefaultTheme,
  8. bool? useCupertinoStyle,
  9. FFText? headerDateStyle,
  10. FFColor? headerBackgroundColor,
  11. FFColor? headerForegroundColor,
  12. FFColor? pickerBackgroundColor,
  13. FFColor? pickerForegroundColor,
  14. FFColor? selectedDateTimeForegroundColor,
  15. FFColor? selectedDateTimeBackgroundColor,
  16. FFColor? actionButtonForegroundColor,
  17. FFColor? cupertinoBackgroundColor,
  18. FFText? cupertinoTextStyle,
  19. double? iconSize,
  20. bool? dismissible,
})

Implementation

factory FFDatePicker({
  FFDatePicker_DateTimePickerType? pickerType,
  $core.bool? allowPast,
  FFValue? defaultDateTime,
  $core.bool? allowFuture,
  FFValue? minDateTime,
  FFValue? maxDateTime,
  $core.bool? useDefaultTheme,
  $core.bool? useCupertinoStyle,
  FFText? headerDateStyle,
  FFColor? headerBackgroundColor,
  FFColor? headerForegroundColor,
  FFColor? pickerBackgroundColor,
  FFColor? pickerForegroundColor,
  FFColor? selectedDateTimeForegroundColor,
  FFColor? selectedDateTimeBackgroundColor,
  FFColor? actionButtonForegroundColor,
  FFColor? cupertinoBackgroundColor,
  FFText? cupertinoTextStyle,
  $core.double? iconSize,
  $core.bool? dismissible,
}) {
  final result = create();
  if (pickerType != null) result.pickerType = pickerType;
  if (allowPast != null) result.allowPast = allowPast;
  if (defaultDateTime != null) result.defaultDateTime = defaultDateTime;
  if (allowFuture != null) result.allowFuture = allowFuture;
  if (minDateTime != null) result.minDateTime = minDateTime;
  if (maxDateTime != null) result.maxDateTime = maxDateTime;
  if (useDefaultTheme != null) result.useDefaultTheme = useDefaultTheme;
  if (useCupertinoStyle != null) result.useCupertinoStyle = useCupertinoStyle;
  if (headerDateStyle != null) result.headerDateStyle = headerDateStyle;
  if (headerBackgroundColor != null)
    result.headerBackgroundColor = headerBackgroundColor;
  if (headerForegroundColor != null)
    result.headerForegroundColor = headerForegroundColor;
  if (pickerBackgroundColor != null)
    result.pickerBackgroundColor = pickerBackgroundColor;
  if (pickerForegroundColor != null)
    result.pickerForegroundColor = pickerForegroundColor;
  if (selectedDateTimeForegroundColor != null)
    result.selectedDateTimeForegroundColor = selectedDateTimeForegroundColor;
  if (selectedDateTimeBackgroundColor != null)
    result.selectedDateTimeBackgroundColor = selectedDateTimeBackgroundColor;
  if (actionButtonForegroundColor != null)
    result.actionButtonForegroundColor = actionButtonForegroundColor;
  if (cupertinoBackgroundColor != null)
    result.cupertinoBackgroundColor = cupertinoBackgroundColor;
  if (cupertinoTextStyle != null)
    result.cupertinoTextStyle = cupertinoTextStyle;
  if (iconSize != null) result.iconSize = iconSize;
  if (dismissible != null) result.dismissible = dismissible;
  return result;
}