How to create BLoC initial state based on dynamic JSON response – Flutter
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: [],…