gradient property

Gradient? gradient
final

Background gradient applied to the image container.

Example

Image(
  'https://example.com/avatar.png',
  gradient: Gradient()..applyLinear(colors: [Colors.purple, Colors.blue]),
)

Implementation

final Gradient? gradient;