copyWith method

  1. @useResult
FRadioStyle copyWith({
  1. FTappableStyleDelta? tappableStyle,
  2. FFocusedOutlineStyleDelta? focusedOutlineStyle,
  3. EdgeInsetsGeometryDelta? padding,
  4. FVariantsValueDelta<FRadioVariantConstraint, FRadioVariant, Color, Delta>? borderColor,
  5. double? borderWidth,
  6. FVariantsValueDelta<FRadioVariantConstraint, FRadioVariant, Color, Delta>? backgroundColor,
  7. FVariantsValueDelta<FRadioVariantConstraint, FRadioVariant, Color, Delta>? indicatorColor,
  8. double? indicatorSize,
  9. FRadioMotionDelta? motion,
  10. FLabelStyleDelta? leadingLabelStyle,
  11. FLabelStyleDelta? trailingLabelStyle,
})

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

See customizing widget styles.

Parameters

Implementation

@useResult
FRadioStyle copyWith({
  FTappableStyleDelta? tappableStyle,
  FFocusedOutlineStyleDelta? focusedOutlineStyle,
  EdgeInsetsGeometryDelta? padding,
  FVariantsValueDelta<FRadioVariantConstraint, FRadioVariant, Color, Delta>? borderColor,
  double? borderWidth,
  FVariantsValueDelta<FRadioVariantConstraint, FRadioVariant, Color, Delta>? backgroundColor,
  FVariantsValueDelta<FRadioVariantConstraint, FRadioVariant, Color, Delta>? indicatorColor,
  double? indicatorSize,
  FRadioMotionDelta? motion,
  FLabelStyleDelta? leadingLabelStyle,
  FLabelStyleDelta? trailingLabelStyle,
}) => .new(
  tappableStyle: tappableStyle?.call(this.tappableStyle) ?? this.tappableStyle,
  focusedOutlineStyle: focusedOutlineStyle?.call(this.focusedOutlineStyle) ?? this.focusedOutlineStyle,
  padding: padding?.call(this.padding) ?? this.padding,
  borderColor: borderColor?.call(this.borderColor) ?? this.borderColor,
  borderWidth: borderWidth ?? this.borderWidth,
  backgroundColor: backgroundColor?.call(this.backgroundColor) ?? this.backgroundColor,
  indicatorColor: indicatorColor?.call(this.indicatorColor) ?? this.indicatorColor,
  indicatorSize: indicatorSize ?? this.indicatorSize,
  motion: motion?.call(this.motion) ?? this.motion,
  leadingLabelStyle: leadingLabelStyle?.call(this.leadingLabelStyle) ?? this.leadingLabelStyle,
  trailingLabelStyle: trailingLabelStyle?.call(this.trailingLabelStyle) ?? this.trailingLabelStyle,
);