TextScalerRef class final

Token reference for TextScaler values

Inheritance
Implemented types
Mixed-in types

Constructors

TextScalerRef(Prop<TextScaler> prop)

Properties

$directives → List<Directive<TextScaler>>?
Optional directives to transform the resolved value.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
hasToken → bool
Whether this property contains at least one token source.
no setterinherited
hasValue → bool
Whether this property contains at least one value source.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sources → List<PropSource<TextScaler>>
The list of sources that provide values for this property.
finalinherited
textScaleFactor → double
The estimated number of font pixels for each logical pixel. This property exists only for backward compatibility purposes, and will be removed in a future version of Flutter.
no setterinherited
type → Type
The runtime type of the property's value.
no setterinherited

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
directives(List<Directive<TextScaler>> directives) → Prop<TextScaler>
Returns a new property with the given directives merged with existing ones.
inherited
mergeProp(covariant Prop<TextScaler>? other) → Prop<TextScaler>
Merges this property with another property.
inherited
noSuchMethod(Invocation invocation) → Never
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).
inherited
toString() → String
A string representation of this object.
inherited

Operators

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