GravityIconData class final
A reference to one SVG from Carpenter's bundled Gravity icon set.
- Inheritance
-
- Object
- CarpenterIconData
- GravityIconData
- Annotations
Constructors
- GravityIconData(String name)
-
References a kebab-case name in the bundled Gravity SVG assets, without
an .svg suffix. Construction does not validate that the asset exists.
const
Properties
Methods
-
buildIcon(
BuildContext context, {required double size, required Color color, String? semanticLabel}) → Widget -
Loads the SVG from the carpenter package at the requested logical-pixel
width and height. Applies color with a source-in filter and forwards
semanticLabel to the SVG renderer.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns the stored asset name in a diagnostic GravityIconData
representation; this is not an asset path.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited