copyWith method

  1. @useResult
FPickerStyle copyWith({
  1. TextStyleDelta? textStyle,
  2. DecorationDelta? selectionDecoration,
  3. FFocusedOutlineStyleDelta? focusedOutlineStyle,
  4. Future<void> hapticFeedback()?,
  5. double? diameterRatio,
  6. double? squeeze,
  7. double? magnification,
  8. double? overAndUnderCenterOpacity,
  9. double? spacing,
  10. TextHeightBehavior? textHeightBehavior,
  11. double? selectionHeightAdjustment,
})

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

See customizing widget styles.

Parameters

Implementation

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