setValue method

void setValue(
  1. String key,
  2. Object value,
  3. {Object converterParameter}

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.


void setValue(String key, Object value, {Object converterParameter}) {
  Binding binding = _getBinding(key);
  if (binding.valueConverter == null) {
    binding.source.setValue(binding.sourceProperty, value);
  } else {
        binding.valueConverter.convertBack(binding.source, value,
            parameter: converterParameter));