loadComponent method

  1. @override
Future<PublishComponent> loadComponent(
  1. PublishSource source,
  2. String type
)
override

Component type (a type name the model's components lists): the definition stored at PublishSource.componentPath. Throws a PublishLoadException when there is none.

Implementation

@override
Future<PublishComponent> loadComponent(PublishSource source, String type) async {
  calls.add('component:${source.name}:$type');
  return _bundled(_bundle(source), type, 'the bundle');
}