copyWith method
PIButtonStyle
copyWith({
- PIButtonType? buttonType,
- PIButtonSize? buttonSize,
- PIRadius? buttonRadius,
- PIColorSense? colorSense,
- 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,
);
}