exportTimeline method

  1. @override
Future<String> exportTimeline(
  1. List<Map<String, dynamic>> clips, {
  2. String? outputPath,
  3. Map<String, dynamic>? config,
})
override

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;
}