CsIconData class
A Cloudscape icon: a name and its vector parts. Pass it to CsIcon.
CsIcon(CsIcons.settings)
Build your own from SVG path data in a 16x16 viewBox, drawn the way Cloudscape draws icons (outlined with the current color):
const CsIconData('rocket', [CsIconPart('M8 1L11 8H5Z', roundJoin: true)])
- Annotations
Constructors
-
CsIconData(String name, List<
CsIconPart> parts, {double viewBox = 16, bool matchTextDirection = false}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- matchTextDirection → bool
-
Mirror the icon in right-to-left layouts (arrows, external).
final
- name → String
-
Cloudscape icon name (
"status-positive").final -
parts
→ List<
CsIconPart> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- viewBox → double
-
Width and height of the square viewBox the parts are drawn in.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
pathOf(
CsIconPart part) → Path -
The parsed path of
part, cached by its data.