onPageChanged method

void onPageChanged(
  1. List<Parameter> params,
  2. ID componentID
)

Implementation

void onPageChanged(List<Parameter> params, ID componentID) {
  assert(!const DeepCollectionEquality().equals(state.parameters, params));
  emit(
    state.copyWith(
      nodeComponentID: componentID,
      parameters: Map.fromEntries(
        params.map(
          (v) => MapEntry(v.id, v),
        ),
      ),
    ),
  );
}