Skip to content

Instantly share code, notes, and snippets.

@fariswd
Created March 8, 2019 04:02
Show Gist options
  • Save fariswd/0b67cc901bc6b11e5eb41083d31e31ff to your computer and use it in GitHub Desktop.
Save fariswd/0b67cc901bc6b11e5eb41083d31e31ff to your computer and use it in GitHub Desktop.
void main() {
Map groceries = {
'fruit': ['apple', 'orange', 'grape'],
};
Map addVegetable = Map.addAll(groceries)..add({'vegetable': ['carrot', 'tomato']});
print(addVegetable);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment