exportCurrentTimeline method
Exports the currently loaded (and edited) timeline without requiring a separate clip list. Preview and export share the same native state.
Implementation
@override
Future<String> exportCurrentTimeline(
int textureId, {
String? outputPath,
}) async {
final exportedPath = await methodChannel.invokeMethod<String>(
'exportCurrentTimeline',
<String, Object?>{'textureId': textureId, 'outputPath': outputPath},
);
if (exportedPath == null) {
throw StateError(
'Native exportCurrentTimeline did not return an output path.',
);
}
return exportedPath;
}