transform abstract method
- Rect bounds, {
- 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});