CssKeywordLinearTransform class

Bounds-aware CSS keyword transform for linear gradients.

CSS corner directions such as to-br depend on the paint rectangle's aspect ratio. Flutter's GradientRotation is bounds-independent, so this transform preserves CSS keyword behavior for utilities and schema round-trips that need that parity.

Inheritance
Annotations

Constructors

CssKeywordLinearTransform(String directionKey)
const

Properties

directionKey String
CSS-style direction key, such as to-r or to-br.
final
hashCode int
The hash code for this object.
no setteroverride
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
transform(Rect bounds, {TextDirection? textDirection}) Matrix4
When a Gradient creates its Shader, it will call this method to determine what transform to apply to the shader for the given Rect and TextDirection.
override

Operators

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

Constants

supportedDirectionKeys → const Set<String>
Direction keys supported by the Mix wire contract.