transform abstract method

Matrix4? transform(
  1. Rect bounds,
  2. {TextDirection? textDirection}
)

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.

Implementers may return null from this method, which achieves the same final effect as returning Matrix4.identity.

Implementation

Matrix4? transform(Rect bounds, {TextDirection? textDirection});