fromAsset static method
Loads a template from a Flutter asset
Implementation
static Future<TemplateWithSchema> fromAsset(String assetPath) async {
try {
final content = await rootBundle.loadString(assetPath);
return _parseRptContent(content);
} catch (e) {
throw Exception('Error loading the template from asset: $e');
}
}