XlsxReader class abstract final

Reads an .xlsx workbook (SpreadsheetML, ECMA-376 Part 1 §18) for display: sheet order and visibility, cell values (shared and inline strings, numbers, booleans, errors, formulas with their saved results), the formatting a reader shows (number format, bold, italic, solid fill with theme and indexed colours, cell borders), conditional formatting (see ConditionalRule for which rules), comments, and frozen panes.

Sheets are streamed (XML events, not a document tree), so a large sheet doesn't hold its whole XML tree in memory. Callers should check the bytes with ZipSafetyGuard first, and can run this in a background isolate: the Workbook it returns is plain data.

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

read(Uint8List bytes) → Workbook
Parses the .xlsx bytes. Throws XlsxFormatException when the package or its XML can't be read.