getCurrentChapter method
获取当前章节
Implementation
Future<int?> getCurrentChapter() async {
if (!_checkInitialized('getCurrentChapter')) return null;
try {
final result = await PangrowthContent.invoke('storyReaderGetCurrentChapter', {
'readerId': _readerId,
});
return result['chapter'] as int?;
} catch (e) {
debugPrint('StoryReaderController: getCurrentChapter失败: $e');
return null;
}
}