CNImageAsset class
Describes a custom image asset to render natively.
Constructors
- CNImageAsset(String assetPath, {Uint8List? imageData, String? imageFormat, double size = 24.0, Color? color, CNSymbolRenderingMode? mode, bool? gradient})
-
Creates an image asset description for native rendering.
const
Properties
- assetPath → String
-
Flutter asset path (e.g., 'assets/icons/my_icon.svg').
final
- color → Color?
-
Preferred image color (for monochrome rendering).
final
- gradient → bool?
-
Whether to enable gradient effects when available.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageData → Uint8List?
-
Raw image data (PNG, SVG, etc. bytes).
If provided, this takes precedence over assetPath.
final
- imageFormat → String?
-
Image format hint for imageData ('png', 'svg', 'jpg', etc.).
Used by native code to determine how to process the data.
final
- mode → CNSymbolRenderingMode?
-
Optional rendering mode.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double
-
Desired point size for the image.
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