setGenericValue<V> method
Sets a value back into the BindableBase object.
This uses the key that was set up with the binding. Additionally
a converterParameter can be passed that will be send to a value
converter if supplied with the binding. The value is the new value to
set into the property specified by the binding.
Generic T is the type as sent.
Implementation
void setGenericValue<V>(String key, V value, {Object? converterParameter}) {
Binding binding = _getBinding(key);
if (binding.valueConverter == null) {
binding.source.setGenericValue<V>(binding.sourceProperty, value);
} else {
binding.source.setValue(
binding.sourceProperty,
binding.valueConverter!.convertBack(binding.source, value,
parameter: converterParameter));
}
}