saveAsHtml static method
Save as HTML file
Implementation
static Future<File> saveAsHtml(FlintWidget content, String filePath) async {
final html = FlintPreview.generatePreviewHtml(content);
final file = File(filePath);
await file.writeAsString(html);
print('✅ HTML saved: $filePath');
return file;
}