Algorithm.fromValue constructor

Algorithm.fromValue(
  1. int value
)

Implementation

factory Algorithm.fromValue(int value) {
  final result = values[value];
  if (result == null) {
    throw StateError('Invalid value $value for bit flag enum Algorithm');
  }
  return result;
}