TemplateLoader class

Loader for .rpt template files

Constructors

TemplateLoader()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromAsset(String assetPath) → Future<TemplateWithSchema>
Loads a template from a Flutter asset
fromFile(String filePath) → Future<TemplateWithSchema>
Loads a template from the file system
fromString(String jsonContent) → TemplateWithSchema
Loads a template from a JSON string
getMetadata(String filePath) → Future<Map<String, dynamic>?>
Extracts the metadata of a file without loading the whole template
listTemplates(String directoryPath) → Future<List<TemplateInfo>>
Lists the templates available in a directory
toFile(ReportTemplate template, String filePath, {Map<String, dynamic>? additionalMetadata}) → Future<void>
Saves a template to a file
validateFile(String filePath) → Future<bool>
Validates a .rpt file without fully loading it