GravityIconData class final

A reference to one SVG from Carpenter's bundled Gravity icon set.

Inheritance
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

assetPath String
Asset path inside the Carpenter package.
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
Kebab-case icon name without the .svg suffix.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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