InAppIcon.svg constructor

InAppIcon.svg(
  1. String name, {
  2. String package = "assets",
  3. String path = "icons",
})

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",
  );
}