Skip to content

Instantly share code, notes, and snippets.

@bubnenkoff
Created July 22, 2020 12:59
Show Gist options
  • Save bubnenkoff/5266142be3ad220f98c3ce65c54db55b to your computer and use it in GitHub Desktop.
Save bubnenkoff/5266142be3ad220f98c3ce65c54db55b to your computer and use it in GitHub Desktop.
import 'dart:convert';
main() {
List list = ['foo', 1, 'bar', 9];
List values = [];
for(var l in list)
{
if (l.runtimeType == String)
{
values.add('"$l"');
}
else
{
values.add(l);
}
}
print(values);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment