ensureReady static method
确保 init + startReport 均已执行(回放页等独立入口调用)。
Implementation
static Future<void> ensureReady() async {
if (!_initialized) {
await init();
}
if (!_reportStarted) {
await startReport();
}
}
确保 init + startReport 均已执行(回放页等独立入口调用)。
static Future<void> ensureReady() async {
if (!_initialized) {
await init();
}
if (!_reportStarted) {
await startReport();
}
}