copyWith method
StoryReaderConfig
copyWith({
- int? storyId,
- int? startChapter,
- int? defaultTextSize,
- int? endPageRecSize,
- bool? hideBack,
- int? pageTurnType,
- int? fontSizeLevel,
- String? customMiddlePageAdViewId,
- int? middlePageInterval,
- String? customMiddleLineAdViewId,
- int? middleLineStartLine,
- int? middleLineInterval,
- String? customBannerAdViewId,
复制配置(可修改部分参数)
Implementation
StoryReaderConfig copyWith({
int? storyId,
int? startChapter,
int? defaultTextSize,
int? endPageRecSize,
bool? hideBack,
int? pageTurnType,
int? fontSizeLevel,
String? customMiddlePageAdViewId,
int? middlePageInterval,
String? customMiddleLineAdViewId,
int? middleLineStartLine,
int? middleLineInterval,
String? customBannerAdViewId,
}) {
return StoryReaderConfig(
storyId: storyId ?? this.storyId,
startChapter: startChapter ?? this.startChapter,
defaultTextSize: defaultTextSize ?? this.defaultTextSize,
endPageRecSize: endPageRecSize ?? this.endPageRecSize,
hideBack: hideBack ?? this.hideBack,
pageTurnType: pageTurnType ?? this.pageTurnType,
fontSizeLevel: fontSizeLevel ?? this.fontSizeLevel,
customMiddlePageAdViewId:
customMiddlePageAdViewId ?? this.customMiddlePageAdViewId,
middlePageInterval: middlePageInterval ?? this.middlePageInterval,
customMiddleLineAdViewId:
customMiddleLineAdViewId ?? this.customMiddleLineAdViewId,
middleLineStartLine: middleLineStartLine ?? this.middleLineStartLine,
middleLineInterval: middleLineInterval ?? this.middleLineInterval,
customBannerAdViewId: customBannerAdViewId ?? this.customBannerAdViewId,
);
}