gradient property
The gradient to use when drawing the icon.
If this is specified, color has no effect.
The gradient is drawn over the AdvancedIconLight. {@tool snippet} Typically, Material Design colors will be used to draw gradient, as follows:
AdvancedIcon(
icon:Icons.home,
gradient:const RadialGradient(
colors: <Color>[Colors.red, Colors.yellow],
center: Alignment.center,
radius: 1,
tileMode: TileMode.repeated,
),
)
{@end-tool}
Implementation
final Gradient? gradient;