onControllerChanged method

void onControllerChanged(
  1. ControllerVariable controller
)

Implementation

void onControllerChanged(ControllerVariable controller) {
  final controllers = {...state.controllers};
  assert(controllers[controller.id] != null);
  controllers[controller.id] = controller;
  emit(state.copyWith(controllers: {...controllers}));
}