GradientIcon constructor
const
GradientIcon({})
Constructs a new GradientIcon
widget.
icon
: The IconData representing the desired icon.gradient
: The Gradient object defining the gradient colors and stops.size
: The size of the icon (default is 25).key
: An optional key to identify this widget.
Implementation
const GradientIcon({
required this.icon,
required this.gradient,
this.size = 25,
this.offset,
Key? key,
}) : super(key: key);