InAppIcon.svg 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.svg(
String name, {
String package = "assets",
String path = "icons",
}) {
return InAppIcon(
package: package,
path: path,
regular: "${name}_regular.svg",
solid: "${name}_solid.svg",
bold: "${name}_bold.svg",
);
}