add method

  1. @override
void add(
  1. Digest value
)
override

Adds value to the sink.

Unlike most sinks, this may only be called once.

Implementation

@override
void add(Digest value) {
  if (_value != null) throw StateError('add may only be called once.');
  _value = value;
}