read method
T
read()
Reads and returns the value of the object.
Implementation
T read() {
if (_writeCount != 0) {
throw StateError('Single writer object ($T) is locked');
}
return _value;
}
Reads and returns the value of the object.
T read() {
if (_writeCount != 0) {
throw StateError('Single writer object ($T) is locked');
}
return _value;
}