Hash.fromValue constructor

Hash.fromValue(
  1. int value
)

Implementation

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