Hash constructor

Hash({
  1. HashingAlgorithm? variant,
  2. String? body,
  3. Map<String, String>? params,
})

Implementation

factory Hash({
  HashingAlgorithm? variant,
  $core.String? body,
  $core.Map<$core.String, $core.String>? params,
}) {
  final _result = create();
  if (variant != null) {
    _result.variant = variant;
  }
  if (body != null) {
    _result.body = body;
  }
  if (params != null) {
    _result.params.addAll(params);
  }
  return _result;
}