Skip to content

Conversation

@SupremeDeity
Copy link
Contributor

No description provided.

if (image.containsKey('variants')) {
final _variants = image['variants'];
for (final variant in _variants.keys) {
print('variant_key: $variant');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These debug prints should be removed?

}
assert(data!['preview'].containsKey('images'));
final raw = data!['preview']['images'].cast<Map<String, dynamic>>();
final raw = data!['preview']['images'].cast<Map<String?, dynamic>>();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When is the key here ever null?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants