gradient property

Gradient? gradient
final

If provided, background draws with this gradient. Otherwise we use color to draw the background. It throws an exception if you provide both color and gradient

Implementation

final Gradient? gradient;