copyWith method

PIButtonStyle copyWith({
  1. PIButtonType? buttonType,
  2. PIButtonSize? buttonSize,
  3. PIRadius? buttonRadius,
  4. PIColorSense? colorSense,
  5. PIButtonStatus? buttonStatus,
})

Implementation

PIButtonStyle copyWith({
  /// 按钮类型
  PIButtonType? buttonType,

  /// 按钮大小
  PIButtonSize? buttonSize,

  /// 按钮圆角大小
  PIRadius? buttonRadius,

  /// 颜色场景
  PIColorSense? colorSense,

  /// 按钮状态
  PIButtonStatus? buttonStatus,
}) {
  return PIButtonStyle(
    buttonRadius: buttonRadius ?? this.buttonRadius,
    colorSense: colorSense ?? this.colorSense,
    buttonSize: buttonSize ?? this.buttonSize,
    buttonType: buttonType ?? this.buttonType,
    buttonStatus: buttonStatus ?? this.buttonStatus,
  );
}