copyWith method

RadioCardTheme copyWith({
  1. ValueGetter<MouseCursor?>? enabledCursor,
  2. ValueGetter<MouseCursor?>? disabledCursor,
  3. ValueGetter<Color?>? hoverColor,
  4. ValueGetter<Color?>? color,
  5. ValueGetter<double?>? borderWidth,
  6. ValueGetter<double?>? selectedBorderWidth,
  7. ValueGetter<BorderRadiusGeometry?>? borderRadius,
  8. ValueGetter<EdgeInsetsGeometry?>? padding,
  9. ValueGetter<Color?>? borderColor,
  10. ValueGetter<Color?>? selectedBorderColor,
})

Creates a copy of this RadioCardTheme but with the given fields replaced with the new values.

Implementation

RadioCardTheme copyWith({
  ValueGetter<MouseCursor?>? enabledCursor,
  ValueGetter<MouseCursor?>? disabledCursor,
  ValueGetter<Color?>? hoverColor,
  ValueGetter<Color?>? color,
  ValueGetter<double?>? borderWidth,
  ValueGetter<double?>? selectedBorderWidth,
  ValueGetter<BorderRadiusGeometry?>? borderRadius,
  ValueGetter<EdgeInsetsGeometry?>? padding,
  ValueGetter<Color?>? borderColor,
  ValueGetter<Color?>? selectedBorderColor,
}) {
  return RadioCardTheme(
    enabledCursor:
        enabledCursor != null ? enabledCursor() : this.enabledCursor,
    disabledCursor:
        disabledCursor != null ? disabledCursor() : this.disabledCursor,
    hoverColor: hoverColor != null ? hoverColor() : this.hoverColor,
    color: color != null ? color() : this.color,
    borderWidth: borderWidth != null ? borderWidth() : this.borderWidth,
    selectedBorderWidth: selectedBorderWidth != null
        ? selectedBorderWidth()
        : this.selectedBorderWidth,
    borderRadius: borderRadius != null ? borderRadius() : this.borderRadius,
    padding: padding != null ? padding() : this.padding,
    borderColor: borderColor != null ? borderColor() : this.borderColor,
    selectedBorderColor: selectedBorderColor != null
        ? selectedBorderColor()
        : this.selectedBorderColor,
  );
}