Method.fromValue constructor Null safety

Method.fromValue(
  1. String value
)

Returns the method class from the name of the method

Implementation

factory Method.fromValue(final String value) => values.singleWhere((method) => method.name == value);