jumpToChapter method
跳转到指定章节
chapter 章节索引(从0开始)
Implementation
Future<void> jumpToChapter(int chapter) async {
if (!_checkInitialized('jumpToChapter')) return;
try {
await PangrowthContent.invoke('storyReaderJumpToChapter', {
'readerId': _readerId,
'chapter': chapter,
});
} catch (e) {
debugPrint('StoryReaderController: jumpToChapter失败: $e');
}
}