valueOf static method

Package valueOf(
  1. String name
)

Implementation

static Package valueOf(String name) {
  return values.firstWhere((e) => e.name == name);
}