My Bloc state isn't updating and I've found the problem to potentially be a Map<String, Map<String, String>
property that isnt being compared properly. Please correct me if I'm wrong, but the state updates when the other properties change, just not when the imageUrls
property updates.
These are my state objects
abstract class PropertiesState extends Equatable {
const PropertiesState();
}
class PropertiesLoaded extends PropertiesState {
final int count;
final List<Property> properties;
final Map<String, Map<String, String>> imageUrls;
const PropertiesLoaded({
this.count,
this.properties,
this.imageUrls,
});
@override
List<Object> get props => [count, properties, imageUrls];
}
The imageUrls field can have any string key/value pairs. I haven't been able to find any information on how I should do this.
Thanks for the help!