getByName static method

JsonWebAlgorithm getByName(
  1. String? name
)

Implementation

static JsonWebAlgorithm getByName(String? name) {
  return allAlgorithms.firstWhere((element) => element.name == name,
      orElse: (() =>
          throw UnsupportedError('Algorithm \'$name\' not supported.')));
}