add method
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;
}
Adds value
to the sink.
Unlike most sinks, this may only be called once.
@override
void add(Digest value) {
if (_value != null) throw StateError('add may only be called once.');
_value = value;
}