AccessibilityFormat class abstract final

Shared formatting so every renderer's ChartRenderer.accessibilityValue reads consistently. Trims trailing zeros so 40.0 announces as "40".

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

number(double value) String
Formats a single value for speech: integers drop the decimal, and fractional values trim trailing zeros (so 40.0 reads as "40").
points(List<(String, double)> pairs, {int limit = 12}) String
"Jan 40, Feb 65, Mar 30" style list, capped so long series stay terse.
range(List<double> values) String
"ranging 20 to 95" — handy when listing every point would be noise.