exportTimeline method
Implementation
@override
Future<String> exportTimeline(
List<Map<String, dynamic>> clips, {
String? outputPath,
Map<String, dynamic>? config,
}) async {
final exportedPath = await methodChannel
.invokeMethod<String>('exportTimeline', <String, Object?>{
'clips': clips,
'outputPath': outputPath,
'config': config ?? TimelineCompositionConfig().toJson(),
});
if (exportedPath == null) {
throw StateError('Native timeline export did not return an output path.');
}
return exportedPath;
}