IconConverter class

Helper class with constant methods to send IconData as image data to Swift, using the data in a UIImage.

Constructors

IconConverter()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

iconToBytes(IconData iconData, {double size = 24.0, Color color = Colors.black}) Future<Uint8List?>
Converts an IconData into PNG bytes by drawing the glyph on a canvas. Produces a sharp result using an internal scale factor.
iconWidgetToBytes(Widget widget, {double size = 24.0}) Future<Uint8List?>
Renders a widget representing an icon and converts it into PNG bytes. Useful when visual styling or layout beyond a simple glyph is needed.