setValue method
Sets the value for the given key and emits the new value.
Implementation
Future<void> setValue(String k, T value) async {
await onSetValue(k, value);
_currentValue = value;
if (!_controller.isClosed) {
_controller.add(value);
}
}