change method

bool change(
  1. T value
)

Convenience method for changing the backing SMIInput.value of the input. For SMITrigger it's usually preferable to use the SMITrigger.fire method to change the input value, but calling change(true) is totally valid.

Implementation

bool change(T value) {
  if (controller.getInputValue(id) == value) {
    return false;
  }
  controller.setInputValue(id, value);
  controller.isActive = true;
  return true;
}