NeomExcelService class

Static service for converting CSV (from LLM output) to XLSX bytes.

Pattern: stateless, no DI needed. Reusable across the Neom ecosystem.

Flow:

  1. LLM generates CSV inside a ```csv code block
  2. extractCsvFromMarkdown extracts the raw CSV
  3. generateFromCsv converts to XLSX bytes
  4. Bytes are downloaded via downloadFileBytes

Constructors

NeomExcelService()

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.