getDramaInfo method
获取卡片短剧信息
返回包含 id, title, coverImage, desc 等字段的 Map。 如果数据未加载完成,可能返回 null。
Implementation
Future<Map<String, dynamic>?> getDramaInfo() async {
_ensureReady();
try {
final result = await PangrowthContent.getDramaCardInfo(_cardId!);
return result;
} catch (e) {
debugPrint('DramaCardController: 获取短剧信息失败 - $e');
return null;
}
}