factory static method

PhosphorIconData factory([
  1. PhosphorIconsStyle style = PhosphorIconsStyle.regular
])

regular: factory thin: factory light: factory bold: factory fill: factory duotone: factory

Implementation

static PhosphorIconData factory(
    [PhosphorIconsStyle style = PhosphorIconsStyle.regular]) {
  switch (style) {
    case PhosphorIconsStyle.regular:
      return PhosphorIconsRegular.factory;
    case PhosphorIconsStyle.thin:
      return PhosphorIconsThin.factory;
    case PhosphorIconsStyle.light:
      return PhosphorIconsLight.factory;
    case PhosphorIconsStyle.bold:
      return PhosphorIconsBold.factory;
    case PhosphorIconsStyle.fill:
      return PhosphorIconsFill.factory;
    case PhosphorIconsStyle.duotone:
      return PhosphorIconsDuotone.factory;
  }
}