IconDecoration constructor

const IconDecoration({
  1. IconBorder? border,
  2. Gradient? gradient,
})

Used to specify a decoration to apply to an Icon widget.

The icon has a border and may cast shadows.

The border paints over the icon; the boxShadow, naturally, paints below it.

Implementation

const IconDecoration({
  this.border,
  this.gradient,
});