copyWith method

OrientationStyleConfig copyWith({
  1. TextStyleConfig? titleStyle,
  2. TextStyleConfig? descriptionStyle,
  3. TextStyleConfig? contentStyle,
  4. TextStyleConfig? scoreStyle,
})

复制并修改

Implementation

OrientationStyleConfig copyWith({
  TextStyleConfig? titleStyle,
  TextStyleConfig? descriptionStyle,
  TextStyleConfig? contentStyle,
  TextStyleConfig? scoreStyle,
}) {
  return OrientationStyleConfig(
    titleStyle: titleStyle ?? this.titleStyle,
    descriptionStyle: descriptionStyle ?? this.descriptionStyle,
    contentStyle: contentStyle ?? this.contentStyle,
    scoreStyle: scoreStyle??this.scoreStyle,
  );
}