You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dart library reference indicates that List.add has a void return type. However it currently returns the new array size in the Dart VM. dartboard shows correct results.
eg:
main() {
var list = new List();
var x = list.add('foo');
print(x);
}
Output: 1
Expected null.
The text was updated successfully, but these errors were encountered:
This issue was originally filed by @butlermatt
Dart library reference indicates that List.add has a void return type. However it currently returns the new array size in the Dart VM. dartboard shows correct results.
eg:
main() {
var list = new List();
var x = list.add('foo');
print(x);
}
Output: 1
Expected null.
The text was updated successfully, but these errors were encountered: