StoryReaderConfig class
短故事阅读器配置模型
Constructors
- StoryReaderConfig({required 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})
-
const
-
StoryReaderConfig.fromMap(Map<
String, dynamic> map) -
从Map创建配置
factory
Properties
- customBannerAdViewId → String?
-
自定义广告配置 - Banner广告视图ID
final
- customMiddleLineAdViewId → String?
-
自定义广告配置 - 段间广告视图ID
final
- customMiddlePageAdViewId → String?
-
自定义广告配置 - 章间广告视图ID
final
- defaultTextSize → int?
-
UI配置 - 默认字体大小
final
- endPageRecSize → int?
-
UI配置 - 文末推荐数量
final
- fontSizeLevel → int?
-
UI配置 - 字体大小档位 (iOS专用)
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- hideBack → bool?
-
UI配置 - 是否隐藏返回按钮
final
- middleLineInterval → int?
-
自定义广告配置 - 段间广告插入间隔(行数)
final
- middleLineStartLine → int?
-
自定义广告配置 - 段间广告起始行数
final
- middlePageInterval → int?
-
自定义广告配置 - 章间广告插入间隔(页数)
final
- pageTurnType → int?
-
UI配置 - 翻页模式 (iOS专用)
0:仿真, 1:滑页, 2:平移, 3:上下滚动
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startChapter → int?
-
起始章节索引(可选,默认从第0章开始)
final
- storyId → int
-
故事ID(必填)
final
Methods
-
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}) → StoryReaderConfig - 复制配置(可修改部分参数)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - 转换为Map
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override