FFDatePicker constructor
FFDatePicker({
- FFDatePicker_DateTimePickerType? pickerType,
- bool? allowPast,
- FFValue? defaultDateTime,
- bool? allowFuture,
- FFValue? minDateTime,
- FFValue? maxDateTime,
- bool? useDefaultTheme,
- bool? useCupertinoStyle,
- FFText? headerDateStyle,
- FFColor? headerBackgroundColor,
- FFColor? headerForegroundColor,
- FFColor? pickerBackgroundColor,
- FFColor? pickerForegroundColor,
- FFColor? selectedDateTimeForegroundColor,
- FFColor? selectedDateTimeBackgroundColor,
- FFColor? actionButtonForegroundColor,
- FFColor? cupertinoBackgroundColor,
- FFText? cupertinoTextStyle,
- double? iconSize,
- 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;
}