GradientIcon constructor

const GradientIcon({
  1. required IconData icon,
  2. required Gradient gradient,
  3. double size = 25,
  4. Offset? offset,
  5. Key? key,
})

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);