bindDataRule method
Add a new data rule.
Implementation
TwoWayBinding<T> bindDataRule(DataRule<T, T> rule) {
_stream = _stream.map((data) {
_value = data;
_value = rule.process(data);
return _value;
}).shareValue();
return this;
}
Add a new data rule.
TwoWayBinding<T> bindDataRule(DataRule<T, T> rule) {
_stream = _stream.map((data) {
_value = data;
_value = rule.process(data);
return _value;
}).shareValue();
return this;
}