copyWith method

StormyRefreshConfig copyWith({
  1. double? triggerOffset,
  2. Duration? processedDuration,
  3. double? iconDimension,
  4. double? spacing,
  5. TextStyle? textStyle,
  6. TextStyle? messageStyle,
  7. StormyRefreshStateTexts? stateTexts,
  8. bool? showMessage,
  9. bool? safeArea,
  10. Color? backgroundColor,
  11. Color? textColor,
  12. StormyRefreshTextConfig? textConfig,
})

复制并修改配置

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,
  );
}