translate static method

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

regular: translate thin: translate light: translate bold: translate fill: translate duotone: translate

Implementation

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