fromName static method

WebDavMethod fromName(
  1. String name
)

Implementation

static WebDavMethod fromName(String name) {
  name = name.toUpperCase();
  return WebDavMethod.values
      .singleWhere((e) => e.name == name, orElse: () => unknown);
}