Skip to content

Instantly share code, notes, and snippets.

@zolotyh
Created June 22, 2018 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zolotyh/b90b0a3fed3170363eb6eca8cfb95577 to your computer and use it in GitHub Desktop.
Save zolotyh/b90b0a3fed3170363eb6eca8cfb95577 to your computer and use it in GitHub Desktop.
import 'dart:async';
import 'dart:collection';
void main(){
final a = <dynamic>['1', '2'];
print(a as List<String>);
}
import 'dart:async';
import 'dart:collection';
void main(){
final a = <dynamic>['1', '2'];
print((a as List).cast<String>());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment