NeomExcelService class
Static service for converting CSV (from LLM output) to XLSX bytes.
Pattern: stateless, no DI needed. Reusable across the Neom ecosystem.
Flow:
- LLM generates CSV inside a ```csv code block
- extractCsvFromMarkdown extracts the raw CSV
- generateFromCsv converts to XLSX bytes
- Bytes are downloaded via downloadFileBytes
Constructors
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
-
extractCsvFromMarkdown(
String markdown) → String? - Extract CSV from markdown ```csv code block.
-
generateFromCsv(
{required String csvContent, String sheetName = 'Datos'}) → Uint8List - Parse CSV string (from LLM code block) into XLSX bytes.
-
suggestFilename(
String csv, {String prefix = 'neom'}) → String - Suggest a filename from the CSV content.