SystemTextScaler class final

A TextScaler that reflects the user's font scale preferences from the platform's accessibility settings.

Inheritance

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textScaleFactor double
A value that represents the current user preference for the scaling factor for fonts.
final

Methods

clamp({double minScaleFactor = 0, double maxScaleFactor = double.infinity}) TextScaler
Returns a new TextScaler that restricts the scaled font size to within the range [minScaleFactor * fontSize, maxScaleFactor * fontSize].
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scale(double fontSize) double
Computes the scaled font size (in logical pixels) with the given unscaled fontSize (in logical pixels).
override
toString() String
A string representation of this object.
override

Operators

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