onParametersChanged method
Implementation
void onParametersChanged(List<Parameter> parameters,
{bool shouldOverrideExisting = false}) {
if (state.parameters.isNotEmpty) {
if (!shouldOverrideExisting) {
return;
}
}
assert(
!const DeepCollectionEquality().equals(state.parameters, parameters));
emit(state.copyWith(
parameters: Map.fromEntries(parameters.map((v) => MapEntry(v.id, v)))));
}