change method Null safety

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 method to change the input value, but calling change(true) is totally valid.


bool change(T value) {
  if (controller.inputValues[id] == value) {
    return false;
  controller.inputValues[id] = value;
  controller.isActive = true;
  return true;