copyWith method

  1. @useResult
FDateTimePickerStyle copyWith({
  1. int? dateFlex,
  2. int? hourFlex,
  3. int? minuteFlex,
  4. int? periodFlex,
  5. EdgeInsetsDirectionalDelta? padding,
  6. double? diameterRatio,
  7. double? squeeze,
  8. double? magnification,
  9. double? overAndUnderCenterOpacity,
  10. double? spacing,
  11. TextStyleDelta? textStyle,
  12. TextHeightBehavior? textHeightBehavior,
  13. double? selectionHeightAdjustment,
  14. DecorationDelta? selectionDecoration,
  15. FFocusedOutlineStyleDelta? focusedOutlineStyle,
  16. Future<void> hapticFeedback()?,
})

Returns a copy of this FDateTimePickerStyle with the given properties replaced.

See customizing widget styles.

Parameters

Implementation

@useResult
FDateTimePickerStyle copyWith({
  int? dateFlex,
  int? hourFlex,
  int? minuteFlex,
  int? periodFlex,
  EdgeInsetsDirectionalDelta? padding,
  double? diameterRatio,
  double? squeeze,
  double? magnification,
  double? overAndUnderCenterOpacity,
  double? spacing,
  TextStyleDelta? textStyle,
  TextHeightBehavior? textHeightBehavior,
  double? selectionHeightAdjustment,
  DecorationDelta? selectionDecoration,
  FFocusedOutlineStyleDelta? focusedOutlineStyle,
  Future<void> Function()? hapticFeedback,
}) => .new(
  dateFlex: dateFlex ?? this.dateFlex,
  hourFlex: hourFlex ?? this.hourFlex,
  minuteFlex: minuteFlex ?? this.minuteFlex,
  periodFlex: periodFlex ?? this.periodFlex,
  padding: padding?.call(this.padding) ?? this.padding,
  diameterRatio: diameterRatio ?? this.diameterRatio,
  squeeze: squeeze ?? this.squeeze,
  magnification: magnification ?? this.magnification,
  overAndUnderCenterOpacity: overAndUnderCenterOpacity ?? this.overAndUnderCenterOpacity,
  spacing: spacing ?? this.spacing,
  textStyle: textStyle?.call(this.textStyle) ?? this.textStyle,
  textHeightBehavior: textHeightBehavior ?? this.textHeightBehavior,
  selectionHeightAdjustment: selectionHeightAdjustment ?? this.selectionHeightAdjustment,
  selectionDecoration: selectionDecoration?.call(this.selectionDecoration) ?? this.selectionDecoration,
  focusedOutlineStyle: focusedOutlineStyle?.call(this.focusedOutlineStyle) ?? this.focusedOutlineStyle,
  hapticFeedback: hapticFeedback ?? this.hapticFeedback,
);