setTemplate method
setTemplate(String) takes a file path (i.e. 'assets/MyTemplate.BWT' or 'assets/MyImage.PNG') as a string representing a template file or image.
This method sets the current template or image being acted upon when setPlaceholderValue(String, String) or print() is called. Therefore, calling setTemplate(String) again will override any previous template that has been set.
Implementation
Future<void> setTemplate(String filePath) async {
throw UnimplementedError(
'setTemplate(String filePath) has not been implemented.');
}