copyWith method - FPickerStyle class - forui.widgets.picker library (original) (raw)

  1. @useResult

FPickerStyle copyWith({

  1. double? diameterRatio,
  2. double? squeeze,
  3. double? magnification,
  4. double? overAndUnderCenterOpacity,
  5. double? spacing,
  6. TextStyle? textStyle,
  7. TextHeightBehavior? textHeightBehavior,
  8. double? selectionHeightAdjustment,
  9. BorderRadiusGeometry? selectionBorderRadius,
  10. Color? selectionColor,
  11. FFocusedOutlineStyle? focusedOutlineStyle,

})

inherited

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

Implementation

@useResult
FPickerStyle copyWith({
  double? diameterRatio,
  double? squeeze,
  double? magnification,
  double? overAndUnderCenterOpacity,
  double? spacing,
  TextStyle? textStyle,
  TextHeightBehavior? textHeightBehavior,
  double? selectionHeightAdjustment,
  BorderRadiusGeometry? selectionBorderRadius,
  Color? selectionColor,
  FFocusedOutlineStyle? focusedOutlineStyle,
}) => FPickerStyle(
  diameterRatio: diameterRatio ?? this.diameterRatio,
  squeeze: squeeze ?? this.squeeze,
  magnification: magnification ?? this.magnification,
  overAndUnderCenterOpacity: overAndUnderCenterOpacity ?? this.overAndUnderCenterOpacity,
  spacing: spacing ?? this.spacing,
  textStyle: textStyle ?? this.textStyle,
  textHeightBehavior: textHeightBehavior ?? this.textHeightBehavior,
  selectionHeightAdjustment: selectionHeightAdjustment ?? this.selectionHeightAdjustment,
  selectionBorderRadius: selectionBorderRadius ?? this.selectionBorderRadius,
  selectionColor: selectionColor ?? this.selectionColor,
  focusedOutlineStyle: focusedOutlineStyle ?? this.focusedOutlineStyle,
);