copyWith method
复制并修改配置
Implementation
StormyRefreshConfig copyWith({
double? triggerOffset,
Duration? processedDuration,
double? iconDimension,
double? spacing,
TextStyle? textStyle,
TextStyle? messageStyle,
StormyRefreshStateTexts? stateTexts,
bool? showMessage,
bool? safeArea,
Color? backgroundColor,
Color? textColor,
StormyRefreshTextConfig? textConfig,
}) {
return StormyRefreshConfig(
triggerOffset: triggerOffset ?? this.triggerOffset,
processedDuration: processedDuration ?? this.processedDuration,
iconDimension: iconDimension ?? this.iconDimension,
spacing: spacing ?? this.spacing,
textStyle: textStyle ?? this.textStyle,
messageStyle: messageStyle ?? this.messageStyle,
stateTexts: stateTexts ?? this.stateTexts,
showMessage: showMessage ?? this.showMessage,
safeArea: safeArea ?? this.safeArea,
backgroundColor: backgroundColor ?? this.backgroundColor,
textColor: textColor ?? this.textColor,
textConfig: textConfig ?? this.textConfig,
);
}