CNSymbol class
Describes an SF Symbol to render natively.
Constructors
-
CNSymbol.new(String name, {double size = 24.0, Color? color, List<
Color> ? paletteColors, CNSymbolRenderingMode? mode, bool? gradient}) -
Creates a symbol description for native rendering.
const
Properties
- color → Color?
-
Preferred icon color (for monochrome/hierarchical modes).
final
- gradient → bool?
-
Whether to enable the built-in gradient when available.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mode → CNSymbolRenderingMode?
-
Optional per-icon rendering mode.
final
- name → String
-
The SF Symbol name, e.g.
chevron.down
.final -
paletteColors
→ List<
Color> ? -
Palette colors for multi-color/palette modes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double
-
Desired point size for the symbol.
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