IconExt extension

Extension on Icon providing convenient methods to create modified icon copies.

This extension allows you to easily create new Icon instances with modified properties while preserving other properties from the original icon.

on

Methods

withColor(Color customColor) Icon

Available on Icon, provided by the IconExt extension

Creates a new Icon with the specified customColor, preserving the icon data.
withSize(double size) Icon

Available on Icon, provided by the IconExt extension

Creates a new Icon with the specified size, preserving the icon and color.