Shader createShader(Rect rect)

Creates a Shader for this gradient to fill the given rect.

Source

Shader createShader(Rect rect);