InAppIcon.png constructor
Creates an instance of InAppIcon using an automatic naming convention.
Parameters:
name
: The base name of the icon.package
: The package where the icons are located (default is "assets").path
: The path to the icons directory (default is "icons").
Implementation
factory InAppIcon.png(
String name, {
String package = "assets",
String path = "icons",
}) {
return InAppIcon(
package: package,
path: path,
regular: "${name}_regular.png",
solid: "${name}_solid.png",
bold: "${name}_bold.png",
);
}