copyWith method
- @useResult
- FVariantsDelta<
FTextFieldSizeVariantConstraint, FTextFieldSizeVariant, FTextFieldStyle, FTextFieldStyleDelta> ? fieldStyles, - FDividerStyleDelta? dividerStyle,
- FCircularProgressStyleDelta? progressStyle,
Returns a copy of this FSelectSearchStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FSelectSearchStyle.fieldStyles - The search field's size styles.
- FSelectSearchStyle.dividerStyle - The style of the divider between the search field and results.
- FSelectSearchStyle.progressStyle - The loading progress's style.
Implementation
@useResult
FSelectSearchStyle copyWith({
FVariantsDelta<FTextFieldSizeVariantConstraint, FTextFieldSizeVariant, FTextFieldStyle, FTextFieldStyleDelta>?
fieldStyles,
FDividerStyleDelta? dividerStyle,
FCircularProgressStyleDelta? progressStyle,
}) => .new(
fieldStyles: FTextFieldSizeStyles(fieldStyles?.call(this.fieldStyles) ?? this.fieldStyles),
dividerStyle: dividerStyle?.call(this.dividerStyle) ?? this.dividerStyle,
progressStyle: progressStyle?.call(this.progressStyle) ?? this.progressStyle,
);