CsIconSize enum

Icon sizes (Cloudscape size). Each size has its own stroke width, so small icons stay crisp and large ones do not look thin.

Inheritance
Available extensions

Values

xSmall → const CsIconSize

12px, 1.5px stroke. Inline with 12px text.

const CsIconSize(12, 16, 1.5, 0.75)
small → const CsIconSize

16px on a 16px line, 2px stroke.

const CsIconSize(16, 16, 2, 1)
normal → const CsIconSize

16px on a 20px line, 2px stroke. The default.

const CsIconSize(16, 20, 2, 1)
medium → const CsIconSize

20px on a 24px line, 2px stroke.

const CsIconSize(20, 24, 2, 1.25)
big → const CsIconSize

32px on a 30px line, 3px stroke.

const CsIconSize(32, 32, 3, 2)
large → const CsIconSize

48px on a 48px line, 4px stroke.

const CsIconSize(48, 48, 4, 3)

Properties

dimension → double
Width and height of the glyph.
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
lineHeight → double
Height of the line the icon sits on when CsIcon.mapHeight is set.
final
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scaleFactor → double
Cloudscape scales the stroke down by this factor inside the 16-unit viewBox, which the glyph scaling cancels out.
final
stroke → double
Visual stroke width in logical pixels.
final

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

Constants

values → const List<CsIconSize>
A constant List of the values in this enum, in order of their declaration.