Skip to content

Instantly share code, notes, and snippets.

@sungamagnus
Last active March 30, 2020 05:02
Show Gist options
  • Select an option

  • Save sungamagnus/04002ba95a597f0b0e55ddf88863c5f1 to your computer and use it in GitHub Desktop.

Select an option

Save sungamagnus/04002ba95a597f0b0e55ddf88863c5f1 to your computer and use it in GitHub Desktop.
list addAll(null) throw
void main() {
final aList = <String>[];
aList.addAll(['a','b']);
print('#1: $aList');
aList.addAll(null);
print('#2: $aList');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment