In my Flutter project I want to initialise BLoC (Provider/Cubit) once API responds with definition of shape of the state required for entire app.
Consider following shapes
shape-1
{
arr1: [],
arr2: [],
selected: false
}
shape-2
{
arr1: [],
obj1: {},
selectedChoiceId: 8
}
As shown above there is no fixed shape of object in the response, hence state of application should be initialised once API responds.
I am using Flutter with BLoC configuration as per recommended by official documentation.
Please suggest how can I achieve "Dynamic state initialisation" with BloC.