FormatterSnapshot class

Utility for generating snapshot matrices of formatted byte sizes or data rates.

Useful for documentation tables, CSV exports, and snapshot tests that assert formatting stability across option combinations.

Constructors

FormatterSnapshot.rate({required Iterable<DataRate> rateSamples, required Iterable<ByteFormatOptions> options, String sampleLabeler(DataRate sample)?, String optionLabeler(ByteFormatOptions option)?})
Builds a snapshot for DataRate samples.
FormatterSnapshot.size({required Iterable<double> sizeSamples, required Iterable<ByteFormatOptions> options, String sampleLabeler(double sample)?, String optionLabeler(ByteFormatOptions option)?})
Builds a snapshot for size samples (in raw bytes as doubles).

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

buildMatrix() List<List<String>>
Returns the matrix as an immutable list of rows: sample, option, formatted.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCsv({String delimiter = ',', bool includeHeader = true}) String
Renders the matrix as CSV text.
toMarkdownTable({bool includeHeader = true}) String
Renders the matrix as a Markdown table.
toString() String
A string representation of this object.
inherited

Operators

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