load method
Implementation
@override
Future<int> load(
List<Map<String, dynamic>> clips, {
Map<String, dynamic>? config,
}) async {
final textureId = await methodChannel.invokeMethod<int>(
'load',
<String, Object?>{
'clips': clips,
'config': config ?? TimelineCompositionConfig().toJson(),
},
);
if (textureId == null) {
throw StateError('Native timeline load did not return a texture id.');
}
return textureId;
}