fromName static method

PaperKind fromName(
  1. String name
)

Implementation

static PaperKind fromName(String name) {
  int var2 = _values.length;

  for (int var3 = 0; var3 < var2; ++var3) {
    PaperKind d = _values[var3];
    if (d._name == name) {
      return d;
    }
  }

  return ROLL;
}