prepare method

  1. @override
FutureOr<void> prepare()
override

Implementation

@override
FutureOr<void> prepare() async {
  var template = await (element as _TemplateDocumentElement)._templateFuture!;
  if (template == null) {
    throw TemplateNotFoundError((element.component as TemplateDocument).name);
  }
  this.template = template;
  return super.prepare();
}