copyWith method - FPickerStyle class - forui.widgets.picker library (original) (raw)
- @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,
})
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,
);