IconDecoration class
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.
Constructors
- IconDecoration({IconBorder? border, Gradient? gradient})
-
Used to specify a decoration to apply to an Icon widget.
const
Properties
- border → IconBorder?
-
A border to draw above the icon color or gradient.
final
- gradient → Gradient?
-
Apply a gradient to the icon. If this is specified the Icon.color
property has no effect.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited